Category Archives: Code

You are here:

Easy Website Redirect Android Devices

app

Best way to redirect android devices <script>// <![CDATA[ if ( (navigator.userAgent.indexOf(‘Android’) != -1) ) { document.location = “http://YourAndroidWebsite.com”; } // ]]></script> the script is looking for the word “Android” anywhere in the useragent then redirects to the document.location URL Scan the barcode with your android device to see it in action!