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“ %}