How do I get rid of those free web space pop-up
adverts? These windows are opened with the window.open
function. JavaScript does however allow you to redeclare this function to
return a false value instead of calling the original window.open
function. Add the following code inbetween the <head> and </head>
tags. Everytime the window.open function is called nothing will happen
which means no more advert on that page.
<SCRIPT LANGUAGE="JavaScript">
<!--
function open(){
return false;
}
// -->
</SCRIPT>
Update: - I am lead to believe that due to changes that Geocities
have made the above code no longer works on their site. I'm leaving it up
though just in case it does.
Killing Tripod Pop-Ups - I have also been sent this code which closes
the pop-up windows on Tripod web space.
<SCRIPT>
<!-- //
function close_nagwin(){
var popupURL = "blank.html";
popup =
window.open(popupURL,"TripodPopup",'toolbar=0,
location=0,directories=0,status=0,menubar=0,
scrollbars=0,resizable=0,width=0,height=0');
popup.close()}
close_nagwin();
// --!>
</SCRIPT>
|