get device width and height javascript code example
Example 1: js know size of screen
alert("Your screen resolution is: " + screen.width + "x" + screen.height)
Example 2: device width js
window.screen.availWidth
alert("Your screen resolution is: " + screen.width + "x" + screen.height)
window.screen.availWidth