asp.net.ph

Skip Navigation Links

boundingHeight Property

TextRange Properties   DHTML Object Properties


Retrieves the height of the rectangle that bounds the TextRange.

Syntax


HTML N/A
Script [ iHeight = ] TextRange.boundingHeight

Possible Values


iHeight Integer specifying the height of the bounding rectangle.

The property is read-only with no default value.

Example

The following example retrieves the value of the boundingHeight property for the given text area.

<script language="JavaScript">
function boundDim ( oObject ) {
var collTextarea = document.all.tags ( "TEXTAREA" );
if ( collTextarea != null ) {
  var oTextRange = oObject.createTextRange ( );
  if ( oTextRange != null ) {
    alert ( "The bounding height is \n" + 
      oTextRange.boundingHeight );
    }
  }
}
</script>
</head>
<body>
<TEXTAREA COLS=100 ROWS=2 id=oElmnt1
  onclick="boundDim ( this )"> . . . </TEXTAREA>

This feature requires Microsoft® Internet Explorer® 4.01 or later.

 Show me 

Applies To

TextRange

See Also

boundingLeft, boundingTop, boundingWidth



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note