Reputation: 51
Is there a way to get the size of a browser's console using javascript?
I've tried looking at window.console
but don't see anything there.
My need for this arises when I try to get the innerHeight
of a browser in fullscreen mode. With the console closed, window.screen.availHeight - (window.outerHeight - window.innerHeight)
works well, but when the console is open, the value (window.outerHeight - window.innerHeight)
includes the top toolbar and the console. I would like to subtract the size of the console.
(I am aware the console can also go on the side but lets just talk in terms of height)
Upvotes: 0
Views: 199