RIP
Tutorial
Tags
Topics
Examples
eBooks
Tutorial by Examples
Check for support
Check if browser supports vibrations if ('vibrate' in window.navigator) // browser has support for vibrations else // no support
Single vibration
Vibrate the device for 100ms: window.navigator.vibrate(100); or window.navigator.vibrate([100]);
Vibration patterns
An array of values describes periods of time in which the device is vibrating and not vibrating. window.navigator.vibrate([200, 100, 200]);
Page 1 of 1
1
Cookie
This website stores cookies on your computer.
We use cookies to enhance your experience on our website and deliver personalized content.
For more details on our cookie usage, please review our
Cookie Policy
and
Privacy Policy
Accept all Cookies
Leave this website