I know that we get the screen size using screen.height and screen.width. I am interested in knowing how to find a useful area of the screen using Javascript. This is like screen height minus address bar minus toolbar, etc.
For most browsers you can read window.innerWidth and window.innerHeight , for Internet Explorer it is document.documentElement.clientWidth and document.documentElement.clientHeight , I think ...
window.innerWidth
window.innerHeight
document.documentElement.clientWidth
document.documentElement.clientHeight
Use window.innerHeight and window.innerWidth