faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 24 people (75%) answered Yes
Recently 7 of 10 people (70%) answered Yes

Entry

I need a height of div element filled with text of unspecified length

Oct 18th, 2001 08:31
Dave Pedowitz, moonlight,


You can get the height of a div by accessing that DOM property.  They 
are different for NS4, and IE.

The IE version would be:

document.all.LAYERID.offsetHeight;

and NS

document.LAYERID.document.height

Hope that helps!

Dave
diggity626@aol.com