A
Andy
Hi,
I have this code in the head of the page:
script language="JavaScript" type="text/JavaScript">
<!--
function goTo(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=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="JavaScript" type="text/JavaScript">
<!--
function goTo(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=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