171
rated 0 times
[
176]
[
5]
/ answers: 1 / hits: 31362
/ 6 Years ago, sun, may 6, 2018, 12:00:00
How can I detect if the device is ONLY tablet? This script below is not working properly.
var ua = navigator.userAgent, tablet = /Tablet|iPad/i.test(ua);
alert(Tablet? + tablet);
I don't want check if is mobile and use else to show tablet. I want only a function to confirm if is tablet. How can I do that? Thanks
More From » javascript