Return to Snippet

Revision: 43788
at March 31, 2011 01:46 by garretjames


Initial Code
// For use within normal web clients 
var isiPad = navigator.userAgent.match(/iPad/i) != null;

// For use within iPad developer UIWebView
// Thanks to Andrew Hedges!
var ua = navigator.userAgent;
var isiPad = /iPad/i.test(ua) || /iPhone OS 3_1_2/i.test(ua) || /iPhone OS 3_2_2/i.test(ua);

Initial URL

                                

Initial Description

                                

Initial Title
JS - iPad User Agent Detection

Initial Tags

                                

Initial Language
JavaScript