How to detect a particular feature through JavaScript with HTML

JavascriptWeb DevelopmentFront End Scripts

Use Modernizr in HTML to detect a feature like audio through JavaScript:

if (Modernizr.audio) {
   /* properties for browsers that
   support audio */
} else{
   /* properties for browsers that
   does not support audio */
}
raja
Updated on 29-Jan-2020 08:37:27

Advertisements