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


c p c
07-04-2003, 06:12 AM
i am using a JS function to link form a drop down menu and i would like to open the links in a new window instead of the same one.

Can anyone tell me what is missing from my code?
<FORM NAME="form1">
<TD WIDTH=340 VALIGN="top">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(form1) {
var URL = document.form1.models.options[document.form1.models.selectedIndex].value;
window.location.href = URL;
}
// End -->
</SCRIPT>
<SELECT NAME="models">
<OPTION VALUE="contact.htm">Choose a manufacturer</OPTION>

</SELECT>
&nbsp;
<input type="button" value="Go!" onClick="javascript:formHandler(this)">
</TD>

thanks

Charles
07-04-2003, 06:34 AM
How does your navigation work for the 13% of users that do not use JavaScript?

c p c
07-04-2003, 07:06 AM
If they want to live in the dark ages, thats their problem.

Charles
07-04-2003, 07:10 AM
That 13% includes people who cannot use JavaScript because of some disability.

And it's hardly unenlightened to defend ones self against pop-ups, mouse trails and other abominations.