[Javascript] Re: Getting frame height and width

Josiah Gordon jgordon at directfile.com
Thu Jun 14 14:06:34 CDT 2001


screen is your monitor's area
document is the area inside your web browser
<framename> is the area inside your frame

What exactly are you trying to do? Are you trying to fill your frame with
the TEXTAREA? I ask because if I know better what you are after there might
be a different way of doing it...


--Josiah Gordon


-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of phumes1 at home.com
Sent: Thursday, June 14, 2001 11:50 AM
To: javascript at LaTech.edu
Subject: RE: [Javascript] Re: Getting frame height and width




This is what was returned in my frame.

Are these coordinates the actual size of the frame? In this case frame "B"
(See diagram below).

The reason I',m asking is because I have the following textarea tag in the
same frame with these coordinates
and it almost fills up the whole frame. By adding any of the below
widths/heights it blows it way out!

<textarea cols="70" rows="25" name="textvar" id="textvar" wrap="off">

I'm I missing something here?????

self.screen.height: 1024
self.screen.width: 1280
self.screen.availHeight: 996
self.screen.availWidth: 1280
self.screenTop: 311
self.screenLeft: 449
self.screen.colorDepth: 16
document.body.clientHeight: 602
document.body.clientWidth: 742
document.body.scrollHeight: 60
document.body.scrollWidth: 726
document.body.offsetHeight: 602
document.body.offsetWidth: 742





At 10:58 AM 6/14/01 -0700, you wrote:
>Try getting the values of:
>
>
>IE/NN
><framename>.height
><framename>.width
>
>or IE only
>document.all.<frameID>
>
>
>HTH,
>
>Josiah Gordon
>
>-----Original Message-----
>From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
>Behalf Of phumes1 at home.com
>Sent: Thursday, June 14, 2001 10:42 AM
>To: javascript at LaTech.edu
>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!
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>http://www.LaTech.edu/mailman/listinfo/javascript
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.261 / Virus Database: 131 - Release Date: 6/6/2001
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.261 / Virus Database: 131 - Release Date: 6/6/2001
>
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>http://www.LaTech.edu/mailman/listinfo/javascript


_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.261 / Virus Database: 131 - Release Date: 6/6/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.261 / Virus Database: 131 - Release Date: 6/6/2001





More information about the Javascript mailing list