Forum Moderators: open
As I am more into Perl than JS I am getting stuck in a little problem I hope you can help with.
Is it possible (and if so how) for a parent window to get a child window's location.href?
In essence I want to open a window, wait for a set amount of time - then query the child window to see if the location.href has changed.
I'm pretty sure it's a simple matter but at 12.30am I'm stumped! (Maybe I should just go to bed)
Thanks
Jason
Then the code:
var x=winX.location.href;
alert(x);
Will reveal the URL of the window. If, however, the contents of the second window are from another domain than the first, the URL is not available due to the security constraints of the "Same Origin Policy".