Name
boundingHeight, boundingWidth — NN n/a IE 4 DOM n/a
Synopsis
Read-only
Returns the pixel measure of the imaginary space occupied by the
TextRange
object. Although you do not see a
TextRange
object in the document (unless a script
selects it), the area of a TextRange
object is
identical to the area that a selection highlight would occupy. These
values cinch up to measure only as wide or tall as the widest and
tallest part of the range.
Example
var rangeWidth = document.forms[0].myTextArea.createTextRange( ).boundingWidth
Value
Integer.
Default
None.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.