I am new to javascripting.... I am trying to intiate a form script.... here is my code....
<form name="go" onSubmit="{return false;}">
<select name="select" onChange="window.document.location=window.document.go.select.value;">
<option value=http://www.webdeveloper.com/forum/archive/index.php/"#">Please Select</option>
<option value="http://www.whatever.com/">Whatever.com</option>
</select>
</form>
This script works fine when used by itself in new document...
however, when I add it to my existing template, it won't work at all....
I keep getting this error:
'window.document.go.select is' is not an object....
Any help would be much appreciated....
Thanx
Dogboy
<form name="go" onSubmit="{return false;}">
<select name="select" onChange="window.document.location=window.document.go.select.value;">
<option value=http://www.webdeveloper.com/forum/archive/index.php/"#">Please Select</option>
<option value="http://www.whatever.com/">Whatever.com</option>
</select>
</form>
This script works fine when used by itself in new document...
however, when I add it to my existing template, it won't work at all....
I keep getting this error:
'window.document.go.select is' is not an object....
Any help would be much appreciated....
Thanx
Dogboy