javascript - I am using Jquery Social feed. I am getting alert box from another site. how to disable that alert from it -


here alert box. want disable alert box.

<script type="text/javascript">                 jquery(window).load(function() {                 var param = document.url.split('#')[1];                 if( param != 'www.abc.com' ){                 alert('here msg');             }         });         </script> 

simply overwrite alert own, empty, function.

window.alert = function() {}; 

integrating code :

$(window).load(function() {    var param = document.url.split('#')[1];    if (param != 'www.abc.com') {      alert('here msg');    }    });  window.alert = function() {};
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -