# Getting The Height and Width of another web page

**URL:** <https://forum.kirupa.com/t/getting-the-height-and-width-of-another-web-page/323261>\
**Category:** web dev\
**Created:** [June 22, 2011, 8:15pm UTC](https://forum.kirupa.com/t/getting-the-height-and-width-of-another-web-page/323261 "2011-06-22T20:15:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreamerp](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dreamerp](https://forum.kirupa.com/u/dreamerp)\
**Post date:** [June 22, 2011, 8:15pm UTC](https://forum.kirupa.com/t/getting-the-height-and-width-of-another-web-page/323261/1 "2011-06-22T20:15:16Z")

</div>

Hey,

I want to use an iframe to load another web site on my page. But, I only want one scroll bar on my page. The issue is that if I disable the scrolling on an iframe, you might miss some of the content on that page.

I want to get the height and width of a web page and then resize the iframe to match this height and width so that it would require no scrolling.

I can do this for pages on my end, but how do I access a different web page and then calculate its width and height?
