device width javascript

JavaScript
window.screen.availWidth
Source

Also in JavaScript: