Answers for "device nature javascript"

0

device nature javascript

<script language="Javascript">
    window.onload=function(){
    var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
    if (mobile) {
        alert("Visit this on a Computer for Better View");              
    } else {

    }
  }
  </script>
Posted by: Guest on June-22-2021

Browse Popular Code Answers by Language