Click to See Complete Forum and Search --> : Open a new window


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>

Phil Karras
09-21-2004, 12:20 PM
You need to use "window.open(url, 'name')"


Change:
onsubmit="document.location.href
to:
onsubmit="window.open(YourNewURLhere, 'temp')....

jinkevin
09-21-2004, 02:14 PM
thank you for your help.