Quantcast
Viewing all articles
Browse latest Browse all 10

Answer by GibboK for JavaScript global event mechanism

// display error messages for a page, but never more than 3 errorswindow.onerror = function(msg, url, line) {if (onerror.num++< onerror.max) {alert("ERROR: "+ msg +"\n"+ url +":"+ line);return true;}}onerror.max = 3;onerror.num = 0;

Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>