windows

They have: 37 posts

Joined: Oct 1999

How do I get a pop-up window with a dropdown menu to open a file in the main window that launched the pop-up window. Also once the document is loaded how can I get the pop-up window to automatically close?

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

go to www.irt.org and search in the JavaScript section for pop-up windows. There are two articles that will teach you how to make the windows and I think one that discusses how to use the pop-up as a remote for the main window.

the drop-down form would be intergrated.

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 122 posts

Joined: Jun 1999

use this code. For the close thing when the page page is loaded, I had the popup window closed after 5 seconds of the main window going to another link b/c I couldn't think of a way to have it close when it was loaded b/c I don't think window.opener.close() would work, but it might.

<form name="go">
<p><select name="go2" size="1">
<option selected value="link1.html">Link1</option>
<option value="link2.html">Link2</option>
</select>
<input type="button" value="Go"
onClick="window.opener.location=document.go.go2.options[document.go.go2.selectedIndex].value;setTimeout('self.close',5000)"></p>
</form>

Hope it helps.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.