PDA

View Full Version : Javascript alert blocker



bebjakm
03-06-2005, 12:55 AM
Is there a way to block all javascript alerts from appearing on my site? Ie. there are spam alerts popping up with freewares and I want to get rid of them. Is there a code that would just block all javascript popups and alerts (especially alerts)? Something like the javascript error blocker:

<!-- Error_Blocker -->
<script language="JavaScript">
<!-- Begin
function blockError(){return true;}
window.onerror = blockError;
// End -->
</script>
<!-- End Error_Blocker -->

but for alerts.
Thanks a lot.

cr3ative
03-06-2005, 09:23 AM
Methinks you are trying to remove adverts from your free host - we can't help there, sorry.

cr3