Hi,
I have this code in the head of the page:
script language="JavaS cript" type="text/JavaScript">
<!--
function goTo(targ,selOb j,restore){ //v3.0
eval(targ+".loc ation='"+selObj .options[selObj.selected Index].value+"'");
if (restore) selObj.selected Index=0;
}
//-->
</script>
and this bit in the body section:
<form name="form1" method="post" action="">
<select name="select" onChange="goTo( 'self',this,0)" >
Simple put I want the new page to open in a new window, I assumed that
changing the 'self' bit to 'blank' would work but all I get are JavaScript
undefined error messages.
Does anybody have any other ideas as to what I could try ?
Thanks
I have this code in the head of the page:
script language="JavaS cript" type="text/JavaScript">
<!--
function goTo(targ,selOb j,restore){ //v3.0
eval(targ+".loc ation='"+selObj .options[selObj.selected Index].value+"'");
if (restore) selObj.selected Index=0;
}
//-->
</script>
and this bit in the body section:
<form name="form1" method="post" action="">
<select name="select" onChange="goTo( 'self',this,0)" >
Simple put I want the new page to open in a new window, I assumed that
changing the 'self' bit to 'blank' would work but all I get are JavaScript
undefined error messages.
Does anybody have any other ideas as to what I could try ?
Thanks
Comment