Forums

Detect MSIE6 and display compatibility warning (2 posts)

  1. Zone403
    Member
    Posted 9 months ago #

    Hi!

    I am running a WordPress theme that doesn't work very well with MSIE6, and so I want to build in a script/plug-in, that shows a alert to people who are visiting my site with MSIE6, to let them know that the site does work with MSIE6, but that they can better upgrade to a newer browser such as MSIE7 or FF.

    Can someone tell me if there is such a script. If yes, how can I install it or build it into my code?

    Thanks in advance!

    - Jeffrey

  2. tugbucket
    Member
    Posted 9 months ago #

    well you probably already have jQuery running so you can use it to alert the user like so:

    if (jQuery.browser.msie) {
      if(parseInt(jQuery.browser.version) <= 6) {
          alert("ie6, weee!");
      }
    }

Reply

You must log in to post.

About this Topic