/ Published in: JavaScript
Expand |
Embed | Plain Text
if(window.navigator.userAgent.match(/(CPU iPhone OS)/)) document.write('This is a iPhone or iPod Touch!'); else document.write('This is NOT a iPhone or iPod Touch!');
Comments
Subscribe to comments
You need to login to post a comment.

Try this snippet in order to detect iPod, Iphone and iPad in javascript: http://snipplr.com/view/55226/detecting-ipadiphoneipod-with-javascript/