asp.net.ph

Skip Navigation Links

boundingTop Property

TextRange Properties   DHTML Object Properties


Retrieves the top coordinate of the rectangle that bounds the TextRange.

Syntax

HTML N/A
Script [ iTop = ] TextRange.boundingTop

Possible Values

iTop Integer specifying the top coordinate of the bounding rectangle.

The property is read-only with no default value.

Example

The following example retrieves the value of the boundingTop 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 top is \n" + 
      oTextRange.boundingTop );
    }
  }
}
</script>
</head>
<body>
<TEXTAREA COLS=100 ROWS=2 id=oTextarea
  onclick="boundDim ( this )"> . . . </TEXTAREA>

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

 Show me 

Applies To

TextRange

See Also

Need a break ?
Suggested Reading

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph.

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