IE6 JavaScript error: “Expected identifier, string, or number”

Note to self: if your code works in FF, but  you get the “Expected identifier, string, or number” error in IE6, this is probably caused by having a list with a comma after the last item. Remove the extraneous comma, and it should work.

4 Responses to “IE6 JavaScript error: “Expected identifier, string, or number””

  1. Levi Says:

    This is one of those maddening errors that pop up from time to time. I find the easiest way to find the problem character is to use Firebug Lite http://getfirebug.com/lite.html

  2. Josh Justice Says:

    Levi, that’s great advice. I will definitely check it out.

  3. kjarsenal Says:

    thanks josh. can’t believe i’m coding to support that pos ie6 crapware!

  4. fregs Says:

    Ohhh, thanks mate!! you saved me a lot of time…

Leave a Reply