get screen width and height with JavaScript
< script >if (screen.width>900||window.innerWidth>900) { }</ script >
Get screen width
window.innerWidth
Get screen height
window.innerHeight
< script >if (screen.width>900||window.innerWidth>900) { }</ script >
Get screen width
window.innerWidth
Get screen height
window.innerHeight
2 thoughts on “How to get screen width and height with JavaScript”
Comments are closed.