Sunday, April 11, 2010

Old Browser Warning for your Website

Wouldn't it be great, if old browsers like the Internet Explorer 6 would vanish in your server's logs?
Every website owner can and in my opinion should encourage people to update their out-of-date browsers. All they have to do, is adding a little warning to their site in the moment a legacy browser is detected.

I'm sure a few months ahead this won't be an issue at all. Browsers, like today Chrome, will automatically update and therefore forcing updates.
But till then the website owners are in charge to enlighten their users.

For example:

Just add the unobtrusive script from to your pages (direct before the </body> tag):

<script type="text/javascript">
  var $buoop = {} 
  $buoop.ol = window.onload; 
    if ($buoop.ol) $buoop.ol(); 
    var e = document.createElement("script"); 
    e.setAttribute("type", "text/javascript"); 
    e.setAttribute("src", ""); 

Then users with an old browser would see a non-intrusive warning at the top of the page:

1 comment:

  1. Right away when I visit your website, I've got a message with announcement about updating my browser. But I do not want to update it, I'm totally satisfied with how it works. I'm afraid that I will lose my data information, after updating. Using the production of apple, I always use only one browser is a Safari which was downloaded here, for convenience. Using official website, is not easy to download it. And safari it works much better then Chrome on ios platform. Especially for my iphone, there is convenient inset for reading, which I use all the time.


And Feedback? Please post a comment: