davelf
09-25-2011, 05:20 AM
Hi, i have from in detecting mobile platform. This is i use to redirect the home page, to the mobile version.
I'm using this script now:
<script type="text/javascript">
var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {
document.location = "mobile.html";
}
</script>
This is my website then i'm try to implement (http://www.ninetynine.co.id)
But not it failed. So is there any other script to help me...
Thanks in advanced.
I'm using this script now:
<script type="text/javascript">
var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
if (mobile) {
document.location = "mobile.html";
}
</script>
This is my website then i'm try to implement (http://www.ninetynine.co.id)
But not it failed. So is there any other script to help me...
Thanks in advanced.