02.06.2013 Views

DOM Traversal Methods

DOM Traversal Methods

DOM Traversal Methods

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

.outerHeight()<br />

Gets the computed outer height of the first element in the set of<br />

matched elements.<br />

Parameters<br />

None.<br />

.outerHeight()<br />

Return Value<br />

An integer representing the outer height of the element, in pixels.<br />

[ 201 ]<br />

Chapter 10<br />

Discussion<br />

The .outerHeight method differs from the basic .height() in that it calculates the<br />

height of the top and bottom padding and the top and bottom borders in addition<br />

to the element itself. Like .height() and .innerHeight(), however, it does not<br />

include the element's margins in the calculation.<br />

If used with document or window, .outerHeight() calls the Dimensions .height<br />

method to return the value.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!