<script>
navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate;
if (navigator.vibrate) {
navigator.vibrate([500, 250, 100, 1000]);
}
</script>
Os recomiendo ver la documentación del API vibrate:
https://developer.mozilla.org/en-US/docs.../Vibration