|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How do I make a popup window from a dropdown menu?
I've got a dropdown menu, users can choose a topic, after they have made a choice a new window popups with the information about the topic. I can make popup window from a link, but not from a dropdown menu. Can anybody help me!!! |
|
#2
|
|||
|
|||
|
Try something along the lines of the following;
<script> <!-- function openMyNewWindow(newURL) { if(newURL > " ") open(newURL); } --> </script> and in the body; <form method="post"> <select name="myList" onChange="openMyNewWindow(this[this.selectedIndex].value)"> <option selected>Go to</option> <option value="one.htm">One</option> <option value="two.htm">Two</option> <option value="three.htm">Three</option> </form> Hope this helps [This message has been edited by spc (edited November 03, 2000).] |
|
#3
|
|||
|
|||
|
Thanks for your help. It's working fine, but I was wondering how I can change the width, heigth etc.(were do I've to define it) I already tried something, but then it won't popup again. I really appreciate your help.
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by spc: Try something along the lines of the following; <script> <!-- function openMyNewWindow(newURL) { if(newURL > " ") open(newURL); } --> </script> and in the body; <form method="post"> <select name="myList" onChange="openMyNewWindow(this[this.selectedIndex].value)"> <option selected>Go to</option> <option value="one.htm">One</option> <option value="two.htm">Two</option> <option value="three.htm">Three</option> </form> Hope this helps [This message has been edited by spc (edited November 03, 2000).][/quote] |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > dropdown menu's + popup window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|