Hi,
I have a simple dropdown menu clickable via a submit/go button.
/////////
[HTML]<form name="mymenu" id="mymenu">
<select name="blabla" size=1>
<OPTGROUP label="somethin g">
<option value="a.html">
link a (must open in popup)
</option>
<option value="b.html">
link b (redirected)
</option>
<option value="c.html">
link c (redirected)
</option>
<option value="d.html">
link d (redirected)
</option>
</OPTGROUP>
</select>
<input type="button" onClick="locati on=document.mym enu.blabla.opti ons[document.mymenu .blabla.selecte dIndex].value;" value="Go">
</form>
[/HTML]
//////////////
Normally, the window is redirected to the selected url via onclicking the GO button.
What i'm looking for is, when I select a *specific* url (for example a.html), only a.html must open in a popup window, *while others are keeping redirected* normally. Something related getelementbyid or what?
Thanks,
Soner
I have a simple dropdown menu clickable via a submit/go button.
/////////
[HTML]<form name="mymenu" id="mymenu">
<select name="blabla" size=1>
<OPTGROUP label="somethin g">
<option value="a.html">
link a (must open in popup)
</option>
<option value="b.html">
link b (redirected)
</option>
<option value="c.html">
link c (redirected)
</option>
<option value="d.html">
link d (redirected)
</option>
</OPTGROUP>
</select>
<input type="button" onClick="locati on=document.mym enu.blabla.opti ons[document.mymenu .blabla.selecte dIndex].value;" value="Go">
</form>
[/HTML]
//////////////
Normally, the window is redirected to the selected url via onclicking the GO button.
What i'm looking for is, when I select a *specific* url (for example a.html), only a.html must open in a popup window, *while others are keeping redirected* normally. Something related getelementbyid or what?
Thanks,
Soner
Comment