0

I'm looking for a cross-browser and cross-site (any doctype) method for obtaining the viewport size. I know that you can use document.documentElement.clientHeight/Width or document.body.clientHeight/Width, but they seem to depend on the doctype.

Please note this question refers to pure js only.

gztomas
  • 3,030
  • 3
  • 27
  • 38

0 Answers0