+ 10
How do you get the screen size
in html or css or javascript
2 odpowiedzi
+ 1
if you are using jquery:
$(window).height();
$(document).height();
$(window).width();
$(document).width();
javascript:
function myFunction() {
var w = window.innerWidth;
var h = window.innerHeight;
}
0
100%
100vh
innerHTML.height or .width, I think