Results 1 to 3 of 3

Thread: Killing pop-ups!

  1. #1
    Join Date
    May 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Killing pop-ups!

    I'm hosting my files at a website that declared beforehand they wouldn't allow any ads. Now once I registered, a HUGE pop-up appears not just everytime I open the index up, but everytime a link is clicked.

    Seeking revenge, I wonder if there's a way to block those pop-ups? by embeding a script or something?

    Thanks

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Hm. Try this:
    Code:
    <script type="text/javascript">
    var RealWinOpen = window.open;
    window.open = function(){return true;};
    window.onerror = function(){return true;};
    </script>
    This will, however, (possibly) disable all popups, including legit ones. Note also that if you do this, and it's against your host's agreement, no-one takes any responsibility for loss of service Make sure nothing forbids it before doing so.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    May 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oh thanks it worked!!!!!

    This is not against my host's agreement. We did not agree on this. It was clearly mentioned no ads would appear. I've also heard they started adding those pop-ups only 6 weeks ago. So it's kind of unrespectability to their users, if you ask me.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •