Modern mobile devices include hardware for vibrations. The Vibration API offers Web apps the ability to access this hardware, if it exists, and does nothing if the device doesn't support it.
- let success = window.navigator.vibrate( pattern );
Support by browsers might be limited. Also support by the operating system may be limited.
The following table gives an overview of the earliest browser versions that provide support for vibrations.
|Chrome||Edge||Firefox||Internet Explorer||Opera||Opera Mini||Safari|
|30||no support||16||no support||17||no support||no support|
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0