JonathanC
06-13-2004, 07:00 PM
I know how to make a page redirect, and I know how to make a button (or link) open a page in a new window. But how can I create a page so that, when it loads, it automatically opens another page in a new window above it?
This seems to work in IE6 (Windows):
page = window.open('url','windowid','toolbar=1,
menubar=1,location=1,status=1,
scrollbars=1,resizable=1,width=w,
height=h');history.go(-1);
(although I'm not sure exactly why - I'm pretty new to JavaScript)
... but not in Safari.
The solution needs to work in Safari, as well as IE (Windows & Mac).
This seems to work in IE6 (Windows):
page = window.open('url','windowid','toolbar=1,
menubar=1,location=1,status=1,
scrollbars=1,resizable=1,width=w,
height=h');history.go(-1);
(although I'm not sure exactly why - I'm pretty new to JavaScript)
... but not in Safari.
The solution needs to work in Safari, as well as IE (Windows & Mac).