AussieClint
MIS
I am having a problem with a syntax error that keeps occuring. I have stripped my page down to see if I had a coding error somewhere, but no, still get the same problem. See code below. The button and the image works just fine only the text link gives the error. The text link executes fine but always gives me a syntax error at the end once I click the OK button for the alert. Doesn't matter what the function is doing, alert or nothing, still gives the same error.
Line: 1
Char: 6
Error: Syntax error
Code: 0
URL: test.htm
<HTML><HEAD><TITLE>Test Page</TITLE></HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- // Hide from none script compatible browsers
function Display(InputString) {
alert("This is the input string: " + InputString)
}
// End hiding -->
</SCRIPT>
<BODY>
<A HREF="javascript:void()" onClick="Display('Go ahead make my day...')">Take this string</A>
<form>
<BR><input type="button" value="try this string" onClick="Display('Damn you loch ness monster get off my porch')">
</form>
<BR><IMG SRC="test1.gif" onClick="Display('Typical stinking f$%^ing hot day here in Bombay')" width="192" height="96">
Now character 6 is >
Is there something wrong with my html? Can't I use void and onClick at the same time?
Error occurs in IE 5.5 but not in NN 4.0
OS is Windows NT 4.0 Workstation
puzzled...
AussieClint
Line: 1
Char: 6
Error: Syntax error
Code: 0
URL: test.htm
<HTML><HEAD><TITLE>Test Page</TITLE></HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- // Hide from none script compatible browsers
function Display(InputString) {
alert("This is the input string: " + InputString)
}
// End hiding -->
</SCRIPT>
<BODY>
<A HREF="javascript:void()" onClick="Display('Go ahead make my day...')">Take this string</A>
<form>
<BR><input type="button" value="try this string" onClick="Display('Damn you loch ness monster get off my porch')">
</form>
<BR><IMG SRC="test1.gif" onClick="Display('Typical stinking f$%^ing hot day here in Bombay')" width="192" height="96">
Now character 6 is >
Is there something wrong with my html? Can't I use void and onClick at the same time?
Error occurs in IE 5.5 but not in NN 4.0
OS is Windows NT 4.0 Workstation
puzzled...
AussieClint