How to know the height of the screen?

Tell me how to know the screen width in js?
That would be when you reduce the browser, it always remained the same.
June 27th 19 at 14:56
1 answer
June 27th 19 at 14:58
Solution
console.log(window.screen);
thank you, and will tell you how to fix that the browser is decreased in size?
for example, was full screen, and then took and turned into 2/3 or even less, to a point, when its reduction has ended, the work function. - Ewell commented on June 27th 19 at 15:01
: jQuery:
var resizeId;
$(window).resize(function() {
clearTimeout(resizeId);
 resizeId = setTimeout(doneResizing, 500);
});

doneResizing function(){
 //whatever we want to do 
}
- Kameron_Hilpert34 commented on June 27th 19 at 15:04
Houston, we have a problem
window.the screen shows the height of the screen 900 (it can't do all at center)
window.innerHeight shows the height of the browser window 832 (but it can be inadvertently changed and everything goes wrong)
How to find the maximum height of the browser, even if it is reduced? - Ewell commented on June 27th 19 at 15:07
That would be when you reduce the browser, it always remained the same.

window.innerHeight - shows the height of the browser window
window.screen.width, window.screen.height - the value unchanged (the screen size) - Kameron_Hilpert34 commented on June 27th 19 at 15:10
: and the maximum height of the browser it is possible to learn somehow?
even if it is collapsed - Ewell commented on June 27th 19 at 15:13
Here view - Kameron_Hilpert34 commented on June 27th 19 at 15:16

Find more questions by tags JavaScript