Tuesday, September 16, 2014

Determine if you are using an iPad in JavaScript.

This says to do it like so which seems to work:

var isIpad = navigator.userAgent.match(/iPad/i) != null;

No comments:

Post a Comment