Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Digital Lifestyle
Web Design and Hosting
Help redirecting to mobile site
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="DenAtTheDBM" data-source="post: 1401960" data-attributes="member: 180726"><p>[CODE]<script type="text/javascript">// <![CDATA[</p><p> var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));</p><p> if (mobile) { document.location = "http://www.youtube.com";}</p><p>// ]]></script>[/CODE]</p><p></p><p>The above code should redirect a mobile browser to youtube. So, just replace the youtube url with the url of your mobile site.</p></blockquote><p></p>
[QUOTE="DenAtTheDBM, post: 1401960, member: 180726"] [CODE]<script type="text/javascript">// <![CDATA[ var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase())); if (mobile) { document.location = "http://www.youtube.com";} // ]]></script>[/CODE] The above code should redirect a mobile browser to youtube. So, just replace the youtube url with the url of your mobile site. [/QUOTE]
Verification
Post reply
Forums
Digital Lifestyle
Web Design and Hosting
Help redirecting to mobile site
Top