Thanks for that tip.
I cannot believe that I missed that!
But that is what I hate about JS, that is one gets no Error message.
OTN, is there a plug-in to one of the Web browsers now that would
provide one with JS Error messages when the debug mode for JS is
truned on? So as developed we could see any JS Error messages when
we have this software (plug-in) On?
The web browser will generally give you good feedback on an error message, with the exception of IE which is known for obtuse js errors. Syntax errors like the one you had usually generate fairly obvious errors, but its up to the individual browser type to choose how to warn you.
Chrome (ctrl+shift+i or ctrl+shift+j)
Firefox (install firebug addon, adds some nice stuff around the default FF console)
IE 8 + (f12)
Safari (Web developer tools in the preferences menu)
Short story: almost every modern browser already has these tools available either by default on a vanilla installation or as an addon.
No chrome doesn’t say that. I found the error when I copied you code, put it in netbeans, and said “Format code”. That’s when I saw (NetBeans doesn’t give an error) that the curly brackets didn’t match. Plus, NetBeans highlights the corresponding bracket when your cursor is on a bracket; also very handy