soulflycrx
06-03-2003, 06:36 PM
Hello. I have a webpage that uses JS. The page automatically opens a pop-up window. This is what that script looks like.
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=748,height=375,left = 144,top = 184');");
}
// End -->
</script>
How can I adjust this script to automatically close the browser window that its on after it does the pop-up?
For example. User goes to my site. Upon entering a window pops up (this window is where the main content of the site is located). I want the page that initiated the pop-up to close once the pop-up has been opened. (There for, the user surfs the website in the pop-up, and the index page has closed itself)
Thanks!
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=748,height=375,left = 144,top = 184');");
}
// End -->
</script>
How can I adjust this script to automatically close the browser window that its on after it does the pop-up?
For example. User goes to my site. Upon entering a window pops up (this window is where the main content of the site is located). I want the page that initiated the pop-up to close once the pop-up has been opened. (There for, the user surfs the website in the pop-up, and the index page has closed itself)
Thanks!