N/APosted on - 02/20/2014
When run the java script I ended up with an error message. I am a beginner and I am in the process of learning new concepts. I got this error message, having hard time. How do I find the solution? Please help me to resolve this error and to find solutions. Your help is great. Thanks a lot.
loading: expected ‘)’. got <end of file> on line 1
Stop executing scripts on this page OK
Better error handling with window on error
This is the output effect of the "window.onerror" fucntion. "onerror" is a DOM event handler that is initiated when an error occurs during the loading of objects.
The "window.onerror" function is also an event handler. It's job is to capture the errors when there is an uncaught exception or a compile-time error. "window.onerror" is then called to give contextual information about the error.
This is just a function to decrease difficulty in debugging your script. This basically shows the type of error or message, the line number where the error occured, and the url of the file.