エラーアラートのスクリプト
errorAlert.js
(function(){ window.onerror = function(msg,url,line){ if(onerror.num++ < onerror.max){ alert("ERROR: " + msg + "\n" + url + "\nline=" + line); return true; } }; onerror.max = 3; onerror.num = 0; })();
(function(){ window.onerror = function(msg,url,line){ if(onerror.num++ < onerror.max){ alert("ERROR: " + msg + "\n" + url + "\nline=" + line); return true; } }; onerror.max = 3; onerror.num = 0; })();