Closing Popup

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Closing Popup

Post 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?
User avatar
Saethyr
Forum Contributor
Posts: 182
Joined: Thu Sep 25, 2003 9:21 am
Location: Wichita, Kansas USA
Contact:

Post by Saethyr »

Code: Select all

windowname.close();

Saethyr
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

Post 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()">
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post 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???
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Code: Select all

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