[Javascript] Re: Getting frame height and width

Peter Brunone peter at brunone.com
Thu Jun 14 12:47:09 CDT 2001


    Just treat the frame as a window.  You can use the same CSS height/width
properties as if the frame were its own window; I don't remember offhand
what the properties are, but you should be able to look them up.

----- Original Message -----
From: <phumes1 at home.com>
To: <javascript at LaTech.edu>
Sent: Thursday, June 14, 2001 12:42 PM
Subject: [Javascript] Re: Getting frame height and width


>
> Hi,
>
> Does anyone know how to go about getting a frames height and width in
> pixels and then output those results to a page?
>
> I have a frameset like
>
>   ----------------------------
> |             |                       |
> |             |                       |
> |     A      |           B         |
> |             |                       |
> |             |                       |
> |             |                       |
>   ----------------------------
>
> I would like to find out the size of frame "B" based on the size of the
> users browser window.
>
> Please tell me this can be done!





More information about the Javascript mailing list