Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to vibrate phone using javascript

// vibrate device for 300 milliseconds
window.navigator.vibrate(300);
// vibrate for 300 milliseconds
// then wait for 100 milliseconds
// vibrate again for 200 milliseconds
window.navigator.vibrate([300, 100, 200]);
// cancel out ongoing vibration
window.navigator.vibrate(0);
//https://usefulangle.com/post/185/javascript-vibrate-device
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery if class exists 
Javascript :: javascript get random floating number 
Javascript :: js how to shufle elements in array 
Javascript :: add button in table using javascript 
Javascript :: sort array of object js 
Javascript :: javascript insert sibling after 
Javascript :: js number 2 decimal places 
Javascript :: javascript convert px to vw 
Javascript :: jquery scroll to top of div animate 
Javascript :: javascript remove non numeric chars from string keep dot 
Javascript :: react fetch post 
Javascript :: nodejs does every worker thread need a new core 
Javascript :: timeout javascript 
Javascript :: react native disable warnings 
Javascript :: local storage javascript array 
Javascript :: JSONStringify c# 
Javascript :: ngfor object 
Javascript :: how to get the first character of a string in javascript 
Javascript :: window.onload 
Javascript :: javascript stop setinterval 
Javascript :: json server sorting 
Javascript :: google sheets get sheet by name 
Javascript :: how to get img dimensions from remote url js 
Javascript :: get query from url react router dom v6 
Javascript :: jquery last character in string 
Javascript :: how to know memory used in localstorage javascript 
Javascript :: scoll a div to bottom in angular 
Javascript :: javascript get body height 
Javascript :: how to check if file upload is empty jquery 
Javascript :: window loaded vanilla javascript 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =