jinkevin
09-21-2004, 10:50 AM
I want to open the web site in a new window upon changing the selections.
Below is the code:
<HTML>
<BODY>
<form action="url" name="language" onsubmit="document.location.href=document.language.url[
document.language.url.selectedIndex].value">
<select style="font-family:Arial;font-size:8pt;" name="url" size="1" onchange="document.location.href=document.language.url[document.language.url.selectedIndex].value">
<option value="">Select a site</option>
<option value="http://www.msn.com">MSN
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.cnn.com">CNN</option>
</select>
</form>
</BODY>
</HTML>
Below is the code:
<HTML>
<BODY>
<form action="url" name="language" onsubmit="document.location.href=document.language.url[
document.language.url.selectedIndex].value">
<select style="font-family:Arial;font-size:8pt;" name="url" size="1" onchange="document.location.href=document.language.url[document.language.url.selectedIndex].value">
<option value="">Select a site</option>
<option value="http://www.msn.com">MSN
<option value="http://www.yahoo.com">Yahoo</option>
<option value="http://www.cnn.com">CNN</option>
</select>
</form>
</BODY>
</HTML>