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

2 thoughts on “How to get screen width and height with JavaScript

  1. Pingback: altogel

Comments are closed.