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
  • 2,562
  • 2
  • 23
  • 37

0 Answers0