Skip to main content

Handle Unessary Java script Error

Dear Readers
Today I got the information that helps you to avoid the Unessary JS error, some time your JS is working fine but there are some null value indications or some time its variable errors that is not using in your code and you need to get rid of these error, now you can handle it very eaisly by apply simple js code any where in your js file or under the script tag


function handleError()

{

return true;

}

window.onerror = handleError;

Hope its helps you alot

Regards
Rashid Imran Bilgrami
CEO Best visualization
http://www.bestvisualization.com

Comments