Answers for "navigator on mobile javascript"

0

navigator on mobile javascript

if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){
  // true for mobile device
  document.write("mobile device");
}else{
  // false for not mobile device
  document.write("not mobile device");
}
Posted by: Guest on March-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language