Las Vegas Website Design and Local SEO
  • Home
  • Website Services
    • Google My Business
    • Local Business Directory Citation Listing (NAP)
    • Social Media Marketing
    • Website Design
  • About
    • Contact Us
    • Shawn Lippert
    • Privacy Policy
    • Terms Of Use

JavaScript Mobile Redirect

Here is a simple JavaScript Mobile Redirection code. This is one of the ways you can detect the screen size of a mobile device and have them redirected to your mobile site.*Note, if the mobile browser has JavaScript Disabled the Mobile Redirection will not work. Here is the JavaScript Mobile Redirection Code:
<script >
<!--
if (screen.width <= 700) {
window.location = "http://m.yourdomain.com";
}
//-->
</script>
 
Make sure you replace the URL with the correct one for your mobile site.

JavaScript Mobile Redirect File Download

javascript_mobile_redirect.txt
File Size: 0 kb
File Type: txt
Download File

Category-Browser

Tags-JavaScript Mobile Redirect
mobile redirect javascript
redirect mobile
javascript redirect mobile devices
mobile detection javascript
redirect mobile site
mobile redirect
redirect to mobile sitemobile redirection
Powered by Create your own unique website with customizable templates.
  • Home
  • Website Services
    • Google My Business
    • Local Business Directory Citation Listing (NAP)
    • Social Media Marketing
    • Website Design
  • About
    • Contact Us
    • Shawn Lippert
    • Privacy Policy
    • Terms Of Use