stevelionbird
Programmer
I'm trying to modify a js based html editor and what I need to do seems quite simple but I'm having trouble.
The editor loads in an iFrame, and the iFrame launches a popup window. Within the popup window, I need to determine the URL of the page that contains the iFrame.
I've tried
but that gives me the URL of the iFrame page .. so I guessed that
might work but that yielded the same.
Is there a way from a popup window (which is opened by an iFrame) to determine the URL of the page that contains the said iFrame?
Thanks in advance,
Steve
The editor loads in an iFrame, and the iFrame launches a popup window. Within the popup window, I need to determine the URL of the page that contains the iFrame.
I've tried
Code:
parent.document.URL
Code:
parent.parent.document.URL
Is there a way from a popup window (which is opened by an iFrame) to determine the URL of the page that contains the said iFrame?
Thanks in advance,
Steve