faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

47 of 154 people (31%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How to solve unspecified error in javascript. I am using window.onerror to supress the error.

Apr 5th, 2008 19:31
ha mo, Francesco Defazio, siva kumar,


You can use a try-catch:
try{
  ...
  ...
  some instruction
}catch(e){
  ....
}
In this way if an error occurs in a try block the instruction in a 
catch are processed.
Bye.
Francesco Defazio
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com