Click to See Complete Forum and Search --> : Window.opener.location
riggers5
07-23-2003, 10:02 PM
Doesn't window.opener.location work in IE6. I have a script that used to work fine under IE5. A parent window would open a child window which has a list of values. Clicking on one of the values would send it to the url (a php script) of the parent window, to be processed. However since upgrading to ie 6 it no longer works.
It works fine for me, so you must have some other error:
<script type="text/javascript">
newwin = window.open();
newwin.document.write('<a href="#" onclick="window.opener.location=\'http://www.w3c.org\'; return false;">Send opener to the W3C</a>');
</script>
riggers5
07-23-2003, 10:52 PM
I dont want to send the parent window to a new location, I want to find the current url of the parent window from the child window
<script type="text/javascript">
newwin = window.open();
newwin.document.write('<a href="#" onclick="alert(window.opener.location); return false;">location</a>');
</script>
riggers5
07-23-2003, 11:57 PM
Thanks for your help