enavu webdevmania tutsvalley psdestination
visit the enavu network
No Comments Article Title Overlay Article Title

Detect the browser visitor is using with jQuery

In today’s daily tip we will make a little jQuery script to check and return the visitor’s browser.

  • DZone
  • Digg
  • Design Float
  • Delicious
  • Blinklist
  • Reddit
  • Facebook
  • Google Buzz
  • Twitter
  • StumbleUpon
  • Tumblr
  • Share/Bookmark

Demo     Source

if( $.browser.safari ) { alert('you are using safari or chrome'); }

if ($.browser.msie) { alert('you are using internet explorer, why are you doing that? :) '); }

if ($.browser.mozilla) { alert('you are using mozilla firefox'); }

That’s it :)

Related posts:

  1. 10 Awesome jQuery and JavaScript Snippets
  2. Coding/Slicing Websites using Images vs. CSS3 & HTML5
  3. Simple Cross Browser CSS Layouts (ie6+, ff3+,safari*,chrome*)
  4. The CSS Pre Wrap Trick

Slobodan Kustrimovic

This author has yet to fill his BIO.

Did you absolutely LOVE this article... share it!

Comments

Leave your own!

Sponsors

fzilla file hosting

Popular Articles