I want to resize my window browser to the content size and I am using window.resizeTo
function (ref) to do this. However I cannot calculate height of browser's address bar. I've tried
window.outerHeight - window.innerHeight
but it also includes the height of browser interface. Is there any way to get the size of address bar in browsers. Take a look at the following picture; I want size of red area or maybe a way to hide it and remove it from the outerHeight calculation