[Normal_Box]
Iphone, Ipad, & Ipod Detection Script
Mobile internet browsing is becoming more advanced and more commonly used everyday. Many internet users significantly use their mobile devices like Iphones, Ipads, and Ipods to browse the internet.
Here’s a java script snippet which will send alert boxes to every Iphone, Ipad, or Ipod user that visits your encoded webpage.[/Normal_Box]
Copy and paste the code into any webpage html.
Change “Place message here for iphone, ipad, and ipod users” to your preferred message.
[Normal_Box]
<script>
if ((navigator.userAgent.indexOf('iPhone') != -1) ||
(navigator.userAgent.indexOf('iPod') != -1) ||
(navigator.userAgent.indexOf('iPad') != -1)) {
alert('Place message for Iphone, Ipad, and Ipod viewers here');
}
</script>
[/Normal_Box]
We have included the iphone, ipad, and ipod detection script on this page, simply view this page with either product for an example.
Sean Doyle
Sean is a tech author and security researcher with more than 20 years of experience in cybersecurity, privacy, malware analysis, analytics, and online marketing. He focuses on clear reporting, deep technical investigation, and practical guidance that helps readers stay safe in a fast-moving digital landscape. His work continues to appear in respected publications, including articles written for Private Internet Access. Through Botcrawl and his ongoing cybersecurity coverage, Sean provides trusted insights on data breaches, malware threats, and online safety for individuals and businesses worldwide.



10 Comments
Great post, I like all the codes on this site.
RT @DNSCoach: Detect Iphones, Ipads, and Ipod website visitors with Javascript http://t.co/Le3r7Gld
RT @DNSCoach: Detect Iphones, Ipads, and Ipod website visitors with Javascript http://t.co/Le3r7Gld
RT @DNSCoach: Detect Iphones, Ipads, and Ipod website visitors with Javascript http://t.co/Le3r7Gld
RT @DNSCoach: Detect Iphones, Ipads, and Ipod website visitors with Javascript http://t.co/Le3r7Gld
RT @DNSCoach: Detect Iphones, Ipads, and Ipod website visitors with Javascript http://t.co/Le3r7Gld
Detect Iphones, Ipads, and Ipod website visitors with Javascript http://t.co/Le3r7Gld
Detect Iphones, Ipads, and Ipod website visitors with Javascript http://t.co/5ERGiqeN
Hey that’s really cool. Thanks!
RT @DNSCoach: Detect Iphones, Ipads, and Ipod website visitors with Javascript http://t.co/Le3r7Gld