Nov 17, 2015

JavaScript error SCRIPT1002: Syntax error

SCRIPT1002:Syntax error occurred most probably in Internet Explorer.

First we try to re-procedure the issue writing below code.

    
    


    Click Me!    

Yes, that is the problem. void is an operator, not a function.

Resolution
So instead of javascript:void(), write the # with href and try it. Hopefully it will work.

No comments:

Post a Comment