Hello,
I am trying to use the window.opener.location code from a link on my popup window to change the webpage in the window that opened my popup. It works on ie/firefox, but doesnt work on safari.
Now i've tried the link with both <a href="#" onClick="return changepage(35);"> and <a href="javascript:changepage(32);"> but safari doesnt want to touch the opener page. Do you know of any workaround/hack to get this to work? If not, is there a way to check to see if the user has safari and change the code to opening the page in a new window?
Thanks a lot
I am trying to use the window.opener.location code from a link on my popup window to change the webpage in the window that opened my popup. It works on ie/firefox, but doesnt work on safari.
Code:
function changepage(id) { window.opener.focus(); //window.opener.location('http://www.mysite.com/index.php?id='+id); window.opener.location.pathname = 'index.php?id=' + id; self.close(); return false; }
Thanks a lot
Comment