Post Pic

Redirecting to mobile website through javascript

A small javascript snippet can help you redirect all your mobile traffic to its specific url.

  <script type="text/javascript">// <![CDATA[  

	if (screen.width <  800) {document.location = "small/index.html";} 

// ]]></script>    

Related posts:

  1. Div height 100% not working with scrolling on IE fixed with Jquery.
  2. Show and hide div using javascript settimeout function unlimited loop
  3. Posting values through AJAX using jquery and getting a dynamic validation response without refreshing the page
  4. How to write rewrite url or clean url code for Nginx server
  5. How to solve ‘cannot modify header information – headers already sent’

Leave Your Response

* Name, Email, Comment are Required

Advertisment

Topics