I am not sure if I've really asked this before but, is there a way to check
the syntax of javascript and html.
I am a little concerned because everything could work okay, even though they
may be an error on the page.
I like to make sure I put all the semi colons and ends, periods, ifs and
everything else all in the right place.
it's not critical, I was just wondering.
thanks
stev
benben - 16 Jan 2005 08:34 GMT
Just run the script. If there is a syntax error you will be notified were
the error report of your browser enabled.
ben
> I am not sure if I've really asked this before but, is there a way to check
> the syntax of javascript and html.
[quoted text clipped - 6 lines]
>
> stev
Martin Honnen - 16 Jan 2005 12:31 GMT
> I am not sure if I've really asked this before but, is there a way to check
> the syntax of javascript and html.
HTML can be checked with an SGML validator, of course to do that you
need to decide on a DTD against which you want to validate:
<http://validator.w3.org/>
For JavaScript there is jslint:
<http://www.crockford.com/javascript/jslint.html>

Signature
Martin Honnen
http://JavaScript.FAQTs.com/