How to block any alert box using javascript? -


i dont know alert box displaying on page load.i want block alert box.how achieve this?

not sure how browser compatible is, you'll have experiment on own. i've tested in latest release of chrome.

capture = window.alert; window.alert = function(){}; // script loaded here window.alert = capture; 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -