JavaScript Reference/Javascript Methods/componentFromPoint
Содержание
"componentFromPoint()" Example
<html>
<body>
<button onclick="alert(this.ruponentFromPoint(0, 0));">X coordinate</button>
</body>
</html>
"componentFromPoint()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <acronym> |
| |<address> <applet> |
| |<area> <b> |
| |<base> <basefont> |
| |<bdo> <bgsound> |
| |<big> <blockquote> |
| |<body> <br> |
| |<button> <caption> |
| |<center> <cite> |
| |<code> <col> |
| |<colgroup> <comment> |
| |<custom> <dd> |
| |<del> <dfn> |
| |<dir> <div> |
| |<dl> <dt> |
| |<em> <embed> |
| |<fieldset> <font> |
| |<form> <frame> |
| |<frameset> <head> |
| |<hn> <hr> |
| |<html> <i> |
| |<iframe> <img> |
| |<input type="button"> <input type="checkbox"> |
| |<input type="file"> <input type="hidden"> |
| |<input type="image"> <input type="password"> |
| |<input type="radio"> <input type="reset"> |
| |<input type="submit"> <input type="text"> |
| |<ins> <isindex> |
| |<kbd> <label> |
| |<legend> <li> |
| |<link> <listing> |
| |<map> <marquee> |
| |<menu> <nobr> |
| |<noframes> <noscript> |
| |<object> <ol> |
| |<option> <p> |
| |<plaintext> <pre> |
| |<q> <rt> |
| |<ruby> <s> |
| |<samp> <script> |
| |<select> <small> |
| |<span> <strike> |
| |<strong> <sub> |
| |<sup> <table> |
| |<tbody> <td> |
| |<textarea> <tfoot> |
| |<th> <thead> |
| |<title> <tr> |
| |<tt> <u> |
| |<ul> <var> |
| |<wbr> <xml> |
| |<xmp> |
+----------------+--------------------------------------------------------------+
"componentFromPoint()" Possible Values
Possible Values
String. Returns one of the following possible values:
empty string Component is inside the client area of the object.
outside Component is outside the bounds of the object.
scrollbarDown Down scroll arrow is at the specified location.
scrollbarHThumb Horizontal scroll thumb or box is at the specified location.
scrollbarLeft Left scroll arrow is at the specified location.
scrollbarPageDown Page-down scroll bar shaft is at the specified location.
scrollbarPageLeft Page-left scroll bar shaft is at the specified location.
scrollbarPageRight Page-right scroll bar shaft is at the specified location.
scrollbarPageUp Page-up scroll bar shaft is at the specified location.
scrollbarRight Right scroll arrow is at the specified location.
scrollbarUp Up scroll arrow is at the specified location.
scrollbarVThumb Vertical scroll thumb or box is at the specified location.
handleBottom Bottom sizing handle is at the specified location.
handleBottomLeft Lower-left sizing handle is at the specified location.
handleBottomRight Lower-right sizing handle is at the specified location.
handleLeft Left sizing handle is at the specified location.
handleRight Right sizing handle is at the specified location.
handleTop Top sizing handle is at the specified location.
handleTopLeft Upper-left sizing handle is at the specified location.
handleTopRight Upper-right sizing handle is at the specified location.
"componentFromPoint()" Syntax, Parameters and Note
Note:
Finds the object at the specified coordinates and returns a value
describing its location.
Syntax:
document.all.elementID.ruponentFromPoint(param1, param2)
Parameters:
param1 Required; the X coordinate relative to the client area.
param2 Required; the Y coordinate relative to the client area.