dropdown and popup

H

_help_

hello,

Here is my code and it works fine
The problem is that i don't want that the new page (page1.htm or page2.htm
or ...) opens as a new page
I want that page1.htm (or ...) opens in a popup
What must i change ?

----------
<form method="post" name="MyFrmName" action="xxxxx.asp">
<select name="MyChoice" size="1" class="keuzevak1">
<option value="---"> </option>
<option value="Room 1" id="page1.htm">Room 1</option>
<option value="Room 2" id="page2.htm">Room 2</option>
<option value="Room 3" id="page3.htm">Room 3</option>
.........
<INPUT type="button" name="go" value="Go"
onClick="window.location=document.MyFrmName.MyChoice.options[document.MyFrmName.MyChoice.selectedIndex].id">
........
</form>
 
M

Mick White

_help_ said:
hello,

Here is my code and it works fine
The problem is that i don't want that the new page (page1.htm or page2.htm
or ...) opens as a new page
I want that page1.htm (or ...) opens in a popup
What must i change ?

----------
<form method="post" name="MyFrmName" action="xxxxx.asp">
<select name="MyChoice" size="1" class="keuzevak1">
<option value="---"> </option>
<option value="Room 1" id="page1.htm">Room 1</option>
<option value="Room 2" id="page2.htm">Room 2</option>
<option value="Room 3" id="page3.htm">Room 3</option>
........
<INPUT type="button" name="go" value="Go"
onClick="window.location=document.MyFrmName.MyChoice.options[document.MyFrmName.MyChoice.selectedIndex].id">
.......
</form>
----------

<INPUT type="button" name="go" value="Go"
onClick="if(si=this.form.MyChoice.selectedIndex){w=window.open(this.form.MyChoice[si].id)}
">


Mick
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,773
Messages
2,569,594
Members
45,121
Latest member
LowellMcGu
Top