How to get the web page size in JavaScript

In this article, we will show you how to get the web page size in JavaScript.

Get the web page size

To get the web page size, we need to get the scrollWidth and scrollHeight of the page content.

Use the following code to get the web page size.

Check the following image for your reference.

Web page size - Clue Mediator
Web page size – Clue Mediator

I hope you find this article helpful.
Thank you for reading. Happy Coding..!! 🙂

If you found value in this article,
you can support us by buying me a coffee! ☕

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *