get page resolution jquery

JavaScript
$( window ).width()
Source

Also in JavaScript: