We can have a function with return true and use it on window.onerror.Thus when the browser encounters a JavaScript error it returns true and block the error begin displayed.
function blkError()
{
return true;
}
window.onerror = blkError;
|
Posted by Joy
We can have a function with return true and use it on window.onerror.Thus when the browser encounters a JavaScript error it returns true and block the error begin displayed.
Labels: Javascript
Theme - Minyx v2.0 template
0 comments:
Post a Comment