Script for Detecting iPhone or iPad?

Discussion created by joshw on Apr 19, 2012
Latest reply on Dec 22, 2015 by disabled_JackRodgers

I've been trying to build a script that will detect when a user logs in on a iPad or a iPhone. I am creating different layouts based on the devices, so I want them to view a certain layout based upon whether they are on a Desktop, iPhone or iPad. Is this possible?