To support our customers during COVID-19 pandemic, we had introduced many
offers and discounts
to help your ecommerce businesses. Learn more

How to detect device type is IOS using jquery

Posted in: Javascript

How to detect device type is IOS using jquery

Use below simple script to detect whether the device is iOS or not.

jQuery( document ).ready(function() {
       if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
              // IOS Device
	} else {
              // NO IOS Device.         
        }
});
June 14, 2018
Did you like this post?
0
0