Home / JS / How to get browser screen width\height size? Height and Width of the Viewport Window

How to get browser screen width\height size? Height and Width of the Viewport Window

<script>if (screen.width>900||window.innerWidth>900) { }</script>

Get screen width

window.innerWidth

Get screen height

window.innerHeight

Hits: 159

%d bloggers like this: