Computer Science, asked by dsy1500gmailcom, 4 months ago

...tells you the width of current page​

Answers

Answered by sidratul1
1

Answer:

var viewportWidth  = document.documentElement.clientWidth;

var viewportHeight = document.documentElement.clientHeight;

Explanation:

You can't get the width of the browser view in plain HTML/CSS. But, you can in Javascript

If you just want the width for debugging purpose, you can find the browser size in Developers Tools.

For example, on Firefox, you can open Developers Tools (Ctrl+Shift+I) and then use the Adaptive View panel (available on the right)

Hope it helps... Please mark as the brainliest!!!

Similar questions