JavaScript Check for support


Example

Check if browser supports vibrations

if ('vibrate' in window.navigator)
    // browser has support for vibrations
else
    // no support