0

Is there a possible way to check the aspect ratio of a website user's screen (4:3, 16:9 etc.) in JavaScript or other web languages?

isherwood
  • 58,414
  • 16
  • 114
  • 157
Shigetora
  • 33
  • 1
  • 1
  • 4

1 Answers1

1

This two variables will give you height and width, which can be used to get resolution or aspect ratio:

  var width = screen.width;
  var height = screen.height;
Suri
  • 66
  • 6