JavaScript Errors

P

PaVaN KuMaR

Hello Everyone,

Not sure whether its the correct forum or not for my scenario.

For finding the existing JS errors on a web page load, we generally
manually check the status bar in Internet Explorer and Error Console
in Firefox browser. But I would like to know if there is a way to
identify/capture these java script errors Programmatically on
different browsers. I believe there should be a way to do this, but
couldn't get any details over the Internet.

Thanks,
Pavan Kumar.
 
T

Tim Streater

Stefan Weiss said:
You could try window.onerror on those browsers that support it. Other
than that, try..catch might be an option for runtime errors, but that
won't work for syntax errors.

When Safari 5.1 is released I'll be putting just this into my app. I'll
be sending the info caught by the event to the server side of my app so
I can log the error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top