You can also use the "try/catch" statements to catch specific errors, if you know which error you're looking for. I think the better way would be to not cause an error in the first place.
Tracy Dryden
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
The technique that Dave posts above is currently employed by The Financial Times for when their code goes into production. It certainly does the job of making their Javascript code appear to run faultlessly.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.