/ Published in: JavaScript
Expand |
Embed | Plain Text
if(navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPod/i)){ window.location = "http://marciobarrios.com/m/"; }
Comments
Subscribe to comments
You need to login to post a comment.

works great. thanks!
I've created a bit more versatile snippet here: http://snipplr.com/view/55226/detecting-ipadiphoneipod-with-javascript/ Check it out and let me know what you think.