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
Post a Comment