www.webdeveloper.com
Results 1 to 7 of 7

Thread: blocking ad blocker software

  1. #1
    Join Date
    Feb 2003
    Location
    wisconsin
    Posts
    3

    blocking ad blocker software

    Customers using our site are complaining that parts of it, such as pop up windows, do not work when they use ad blocker software. I would like to be able to detect this software and display a message to turn it off when using our site.

    any other info on how to deal with site problems caused by ad blocker software is appreciated.

  2. #2
    Join Date
    Feb 2003
    Location
    Britain
    Posts
    1,335
    Ad blockers block the window.open function, so what you need to make is a script on the first page of your site which tries to open a window. When this window opens, it needs to define a variable which it will return to the original window. The script can then prompt the user to disable ad-blockers if that variable is never returned. I'm a bit busy to script that, but maybe someone else could?

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    It's the responsibility of the web author to follow the standards and make pages that work when pop-ups are blocked or when scripting is disabled. And it's easily done. If you use the following method to open your pop-ups you will stop getting those complaints.

    <a href="http://www.w3.org/TR/WCAG10/wai-page...l#tech-scripts" onclick="window.open(this.href); return false">Guideline 6.3</a>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Feb 2003
    Location
    wisconsin
    Posts
    3
    Thanks Charles, but what if I am not doing an anchor tag?

  5. #5
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    What are you doing?
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  6. #6
    Join Date
    Feb 2003
    Location
    wisconsin
    Posts
    3
    our site automatically pops up windows under certain conditions. an example
    <script language="JavaScript">
    var url = "http://www.goinghere.com/thispage";
    window.open(url,"win");
    top.location.href ="#system##linkString#";
    </script>

  7. #7
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    I need a little more to go on than that, but there's always a way. You just have to get creative. Sometimes the best way to work is to start with a site that works without JavaScript and then add. Flashing to people who know that they're blocking your pop-ups a notice that they're blocking your pop-ups is only going to anger the people who are currently annoyed.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles