check width javascript code example
Example 1: device width js
window.screen.availWidth
Example 2: how to get width in javascript
int screenHeight = screenSize.height;
int screenWidth = screenSize.width;
window.screen.availWidth
int screenHeight = screenSize.height;
int screenWidth = screenSize.width;