modernizr

Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.