K
Kian
Hi,
I wonder if anyone can help me on my problem...
My drop down menu below is working ok. Can anyone tell me how can I add
target="_top" attribute into the code below??
Thanks,
Kian
==================================
<script language="JavaScript">
<!--
function goToURL(form)
{
var myindex=form.dropdownmenu.selectedIndex
if(!myindex=="")
{window.location.href=form.dropdownmenu.options[myindex].value;}
}
-->
</script>
<select name="dropdownmenu" size="1" onChange="goToURL(this.form)">
<option selected value="">
Go to...
<option value="http://www.black.com/">
Black
<option value="http://www.yello.com">
Yellow
<option value="http://www.red.com">
Red
</select>
I wonder if anyone can help me on my problem...
My drop down menu below is working ok. Can anyone tell me how can I add
target="_top" attribute into the code below??
Thanks,
Kian
==================================
<script language="JavaScript">
<!--
function goToURL(form)
{
var myindex=form.dropdownmenu.selectedIndex
if(!myindex=="")
{window.location.href=form.dropdownmenu.options[myindex].value;}
}
-->
</script>
<select name="dropdownmenu" size="1" onChange="goToURL(this.form)">
<option selected value="">
Go to...
<option value="http://www.black.com/">
Black
<option value="http://www.yello.com">
Yellow
<option value="http://www.red.com">
Red
</select>