Forum Moderators: coopster

Message Too Old, No Replies

double click brings up a new window

         

eatspinach

3:49 pm on Jun 11, 2009 (gmt 0)

10+ Year Member



Hi I dont know the html name for the item i have below i think its a multi select listbox.

anyway i want to be able to double click on an item for example volvo and when that happens i want a new html window to open up with all the models of volvos. then the user can select the model the want and then that model will then go into a text box on the first page...

<select name="quesLib" size="4" multiple="multiple" style="width:258px;" >
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>

not sure how to do this?

d40sithui

3:13 pm on Jun 12, 2009 (gmt 0)

10+ Year Member



This should do it. Just tested on IE 7 / FF 3.


<select name="quesLib" size="4" multiple="multiple" style="width:258px;" ondblclick="window.open('newPage.php?quesLib='+options[selectedIndex].value);" >
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>