Forum Moderators: open
unterminated string constant
source:http://www.example.com/contact1.html
Line:12
I have copied the html code from line 12 below, any advice as to what is causing the error would be grately appreciated.
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
[edited by: jatar_k at 11:15 pm (utc) on Sep. 21, 2006]
[edit reason] examplified [/edit]
-----
But the error that's given is a bit strange - it doesn't look like a 'normal' javascript error?! Almost like it's generated by the code itself?! IE is not reporting it in the usual way (with the debugger) and FF does not report it all?!
Would need to see more code...
Penders is correct, if you want to see specifically where the error is, load the page in FireFox then view the Javascript Console, it will point right to it.
An unterminated string constant is usually the sign of a missing quote.
var msg = 'Hello World'; // ' and ' start and end the string constant
var msg = 'Hello World; // oops