
On 12.06.11, In Javascript, by admin
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:
- Div height 100% not working with scrolling on IE fixed with Jquery.
- Show and hide div using javascript settimeout function unlimited loop
- Posting values through AJAX using jquery and getting a dynamic validation response without refreshing the page
- How to write rewrite url or clean url code for Nginx server
- How to solve ‘cannot modify header information – headers already sent’




Leave Your Response