Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: open
myWindow8 = window.open('blank.htm','myExample8');
setTimeout("myWindow8.location.href = 'testpage.htm'",10000);
Is there way to change both windows in testpage.htm (using the Ctrl - N method)? And in which browsers will this work?
Welcome to WebMasterWorld... I'm sure that you'll find it a fantastic resource, as I certainly have!
I reckon that because this script is in the original page that opens the new, blank.html page - when you hit Ctrl-N on blank.html, the setTimeout script is not at all associated with it.
A better way may be to use a meta refresh tag in the head of blank.html, <meta http-equiv="refresh" content="10;URL=testpage.html">. This means that any opening of blank.html will automatically refresh to testpage.html after 10seconds.
This method will work in all browsers...
Once a user opens a new page, independent of any of your script, then you have little to no control over that page.