JavaScript Single vibration


Example

Vibrate the device for 100ms:

window.navigator.vibrate(100);

or

window.navigator.vibrate([100]);