|
|
Member Since: Nov 29, 2010
Location: Vancouver, BC, Canada
Posts: 24
Mac Specs: Black 13.3" MacBook 4,1 Intel Core2 Duo, 4Gigs Ram (2x2G), 2.4GHz, OS X 10.7.2
|

05-05-2012, 09:48 AM
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>
The above code should redirect a mobile browser to youtube. So, just replace the youtube url with the url of your mobile site.
|
|
|
QUOTE
Thanks
|