jkgraham
08-19-2002, 05:20 PM
Hello,
I'm getting the following error when I click on the 'hi' link in the code below.
Object doesn't support this property or method.
This is a very simple javascript and I don't know why it's giving this error. Any help would be greatly appreciated. I get the error in IE v6.0.2600. I plan to do form validation in the doOp function but striped it all out for simplicity.
Thanks,
-Jon
<html>
<head>
<title>Untitled</title>
</head>
<script>
<!--
function doOp() {
var myform = document.blah;
myform.submit();
}
// -->
</script>
<body>
<form name=blah action=testing.php method=post>
<br>
<a href="#" onclick="doOp();">hi</a>
<br>
this is a test
<input type=submit name=submit value=go123 >
</form>
</body>
</html>
I'm getting the following error when I click on the 'hi' link in the code below.
Object doesn't support this property or method.
This is a very simple javascript and I don't know why it's giving this error. Any help would be greatly appreciated. I get the error in IE v6.0.2600. I plan to do form validation in the doOp function but striped it all out for simplicity.
Thanks,
-Jon
<html>
<head>
<title>Untitled</title>
</head>
<script>
<!--
function doOp() {
var myform = document.blah;
myform.submit();
}
// -->
</script>
<body>
<form name=blah action=testing.php method=post>
<br>
<a href="#" onclick="doOp();">hi</a>
<br>
this is a test
<input type=submit name=submit value=go123 >
</form>
</body>
</html>