JQuery how to test mobile browser?

How do you test, for example, the Android browser in jQuery?

Greetings.

+4
source share
2 answers

See ppk in this article on combining Javascript and CSS queries for mobile specific rendering.

+3
source

Do you want to test a mobile browser or small screen?

In javascript, I would write

var isSmallScreen = ((screen.width * screen.width) + (screen.height * screen.height)) <= ((640*640)+(480*480)); 

to see if the screen is smaller than about 640 x 480.

+1
source

All Articles