G
Graham
What I currently have is a page that opens another browser at 800x600, once
that is loaded I would like to close the orginal page down while keeping the
page that it has just opened open (To make it more clear take a look at
http://www.ithorizon.co.uk).
I have inserted some code below to show what I currently have, but I don't
have the knowledge to amend it, can somone please help.
<SCRIPT LANGUAGE="JavaScript">
closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=100,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup() {
url = "frame.html";
width = 800; // width of window in pixels
height = 600; // height of window in pixels
delay = 3; // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
</script>
Many thanks,
Graham
http://www.ithorizon.co.uk
that is loaded I would like to close the orginal page down while keeping the
page that it has just opened open (To make it more clear take a look at
http://www.ithorizon.co.uk).
I have inserted some code below to show what I currently have, but I don't
have the knowledge to amend it, can somone please help.
<SCRIPT LANGUAGE="JavaScript">
closetime = 0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds
function Start(URL, WIDTH, HEIGHT) {
windowprops = "left=100,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, "preview", windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}
function doPopup() {
url = "frame.html";
width = 800; // width of window in pixels
height = 600; // height of window in pixels
delay = 3; // time in seconds before popup opens
timer = setTimeout("Start(url, width, height)", delay*1000);
}
</script>
Many thanks,
Graham
http://www.ithorizon.co.uk