Page 1 of 1

Closing Popup

Posted: Wed Dec 31, 2003 9:54 am
by Straterra
How do I close a popup automatically? I have code to automatically open a popup, but how do I close a popup automatically when a page is loaded?

Posted: Wed Dec 31, 2003 10:30 am
by Saethyr

Code: Select all

windowname.close();

Saethyr

Posted: Wed Dec 31, 2003 11:16 am
by Straterra
That doesn't work. What I have is this..

Code: Select all

<BODY onLoad="eckmusic.close();">
I have also tried...

Code: Select all

<BODY onLoad="eckmusic.close()">

Posted: Wed Dec 31, 2003 8:12 pm
by m3rajk
i believe that you need to make the window dependant.... ummmm... try looking at the window.functions


maybe a combination.. like only have it open for a cetain amount of time or something... maybe that can give the effect... or maybe there's a window.child???

Posted: Thu Jan 01, 2004 1:37 am
by JAM

Code: Select all

<body onload="settimeout(window.close, 1)">
Works here...