how to bypass prompt message in javascript code example Example: jquery remove all alerts window.alert = function() {}; // or simply alert = function() {};