This tutorial shows how to get the size resolution in Javascript.
<script language="javascript"> document.write( 'Screen width = ' + screen.width + 'px'); document.write( '<br/>Screen height = ' + screen.height + 'px'); </script>
The same way, you can get the window size using jquery
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"> var a;</script> <script language="javascript"> document.write( 'Window width = ' + $( window ).width() + 'px'); document.write( '<br/>Window height = ' + $( window ).height() + 'px'); </script>