05-18-2012, 03:11 PM
|
|
Confirmed User
Join Date: Jan 2003
Posts: 973
|
Quote:
Originally Posted by jimmycooper
Here you go, chief!
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.yoursite.com";
}
// ]]></script>
|
thank you
|
|
|