How to know the full height and width of a webpage

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to know the full height and width of a webpage

Karim SAIDI
Hello,
 I am embedding a browser in my app. and I have to know the full height and
width of the webpage in pixels.
How can I achieve that?

Any help will be apprecied,
 Thanks.


_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: How to know the full height and width of a webpage

Martijn-4
On 11/9/06, Karim SAIDI <[hidden email]> wrote:
> Hello,
>  I am embedding a browser in my app. and I have to know the full height and
> width of the webpage in pixels.
> How can I achieve that?

window.innerHeight + window.scrollMaxY should work, see:
http://developer.mozilla.org/en/docs/DOM:window.scrollMaxY

Regards,
Martijn

> Any help will be apprecied,
>  Thanks.
>
>
> _______________________________________________
> dev-tech-layout mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-layout
>
_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout