Wednesday, June 04, 2008

javascript syntax error

This is just a memory on my blog about the "descriptive" message syntax error with a javascript code.
Just to fastly remember that sometimes it comes from this kind of line where i forgot the = character on an "if" sentence.

if (a=1)

where the correct sentence is

if (a==1)

Sometimes i got the "syntax error" message and sometimes "Object expected"


Post a Comment

<< Home