Skip to content
WJunction - Webmaster Forum

iPhone/iPod Detection using Javascript

Status
Not open for further replies.
This little bit of script will detect the iPhone or iPod touch and send it on it’s merry way to whatever page you wish. So you can use it on your website to send iPhone/iPod users to a webpage which is specially made for iPhone/iPod users.

PHP:
if ((navigator.userAgent.indexOf('iPhone') != -1) ||
(navigator.userAgent.indexOf('iPod') != -1)) {
document.location = "http://www.tutsby.me/forum/iphone-specialpage/";  
}

Credit goes to BlaZe
 
Status
Not open for further replies.

About the author

P
Active Member · Joined
Ex-owner of Plutost.com
1,061
Messages
12
Reactions
38
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom