 <p>Take a look at modernizr, it's a js library that will do various feature detection tests and gives you a way to query whether or not to use a particular feature. You can also load specific js files with modernizr.load based on whether a feature is supported in the browser.</p> <p><a href="http://www.modernizr.com/" rel="nofollow">http://www.modernizr.com/</a></p> <p>Tutorial: <a href="http://www.alistapart.com/articles/taking-advantage-of-html5-and-css3-with-modernizr/" rel="nofollow">http://www.alistapart.com/articles/taking-advantage-of-html5-and-css3-with-modernizr/</a></p>