A
andy johnson
Hi,
I'm validating an html file with this script and have this error
message from the validator:
Line 101, character 22:
<FORM NAME="DropDown">
^
Error: required attribute ACTION not specified
The script in question is:
<SCRIPT LANGUAGE="javascript" TYPE="text/javascript">
function LinkUp()
{
var number = document.DropDown.DDlinks.selectedIndex;
location.href = document.DropDown.DDlinks.options[number].value;
}
</SCRIPT>
<FORM NAME="DropDown">
<SELECT NAME="DDlinks" style="FONT-SIZE: 10px;">
(...all opton values omitted for bandwidth and yawn factor....)
</SELECT><BR><img src="images/form-spacer.jpg" width="84" height="3"
alt="form space" border="0"><BR><center><INPUT TYPE="BUTTON" VALUE="Go
to page" onClick="LinkUp()" style="FONT-SIZE: 10px;"></center></FORM>
Any ideas????? This script does work, but doesn't validate.
Thanks,
Andy
"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)
I'm validating an html file with this script and have this error
message from the validator:
Line 101, character 22:
<FORM NAME="DropDown">
^
Error: required attribute ACTION not specified
The script in question is:
<SCRIPT LANGUAGE="javascript" TYPE="text/javascript">
function LinkUp()
{
var number = document.DropDown.DDlinks.selectedIndex;
location.href = document.DropDown.DDlinks.options[number].value;
}
</SCRIPT>
<FORM NAME="DropDown">
<SELECT NAME="DDlinks" style="FONT-SIZE: 10px;">
(...all opton values omitted for bandwidth and yawn factor....)
</SELECT><BR><img src="images/form-spacer.jpg" width="84" height="3"
alt="form space" border="0"><BR><center><INPUT TYPE="BUTTON" VALUE="Go
to page" onClick="LinkUp()" style="FONT-SIZE: 10px;"></center></FORM>
Any ideas????? This script does work, but doesn't validate.
Thanks,
Andy
"There would be a lot more civility in this world if people
didn't take that as an invitation to walk all over you"
- (Calvin and Hobbes)