Forum Moderators: open

Message Too Old, No Replies

Closing a Window

Trying to close a popup when parent finished loading

         

riotfire

6:36 pm on Sep 23, 2003 (gmt 0)

10+ Year Member



I have a link that when clicked a pop-up comes up and the parent page starts to load a new page. Is it possible to have the pop-up close when the parent is done loading, or at least change the content of the pop-up.

korkus2000

7:14 pm on Sep 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld riotfire,

onload="nameofpopup.close();" or onload="nameofpopup.location='newpage.htm'"

riotfire

7:36 pm on Sep 23, 2003 (gmt 0)

10+ Year Member



Im new to this, where do i put that code and how do i name the pop-up window itself? I tryed what i thought was correct but i had no success.

korkus2000

7:39 pm on Sep 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You put an onload in the body tag. Naming a window should happen when you open it like:

var newWindow = window.open("Sample.htm", nameofwindow,
"height=200, width=400, status=yes, toolbar=no, menubar=no, location=no");

riotfire

7:45 pm on Sep 23, 2003 (gmt 0)

10+ Year Member



Ok i got the naming right, but not the location of the code.

thanks for you help!