Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Check for availability

  • Modernizr

Modernizr.inputtypes.TYPE where TYPE is one of the names mentioned previously.

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

<script src="modernizr.min.js"></script>

<script>
if (Moernizr.featurename) {
    // feature supported
} else {
    // feature NOT supported
}
</script>

See also [detect](http://diveintohtml5.info/detect.html“ %}