/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function handleError() { alert(An error has occurred!'); return true; } window.onerror = handleError;
URL: http://hungred.com/2009/03/08/how-to/javascript-tutorial-handling-errors/