Not quite sure what you are after, but here are some tips.
window.screen contains the current OS resolution. This is available through screen.height and screen.width . Two other interesting values ββmight be availHeight and availWidth (not 100% sure cross-browser availability)
If you need to know the current browser sizes that are stored in the window object itself. window.innerHeight , window.outerHeight , window.innerWidth and window.outerWidth are the values ββof interest. Internal prefix values ββreflect the working (client) area of ββthe browser, while external prefixes contain the entire area of ββthe browser window.
jAndy
source share