asp.net.ph

Skip Navigation Links

boundingLeft Property

TextRange Properties   DHTML Object Properties


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

Syntax


HTML N/A
Script [ iLeft = ] TextRange.boundingLeft

Possible Values


iLeft Integer specifying the left coordinate of the bounding rectangle.

The property is read-only with no default value.

Example

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

<script language="JavaScript">
function boundDim ( oObject ) {
var collTextarea = document.all.tags ( "TEXTAREA" );
if ( collTextarea != null ) {
  var oTextRage = oObject.createTextRange ( );
  if ( oTextRange != null ) {
    alert ( "The bounding left is \n" + 
      oTextRange.boundingLeft );
    }
  }
}
</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

boundingHeight, 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