Navigator useragent detect
http://www.jquery4u.com/mobile-devices/navigator-useragent-mobiles-including-ipad/
Beware : test vs match perf : http://jsperf.com/test-vs-match-regex