How to correct use devicemotion on JS

124 Views Asked by At

I tried to use "devicemotion" like this:function fun(){ alert("Work!"); } window.addEventListener('devicemotion', fun); what I do wrong?

0

There are 0 best solutions below