- Modernizr
Check for availability
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.
examples/mob/html_modernizr.html
<script src="modernizr.min.js"></script> <script> if (Moernizr.featurename) { // feature supported } else { // feature NOT supported } </script>
See also detect