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

http://modernizr.com/ is a JavaScript library that detects HTML5 and CSS3 features in the user's browser.

examples/html_modernizr.html
<script src="modernizr.min.js"></script>

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

See also http://diveintohtml5.info/detect.html