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

c++ - Linked List error when inserting for the last time -

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

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -