JavaScript Reference/Javascript Methods/componentFromPoint

Материал из Web эксперт
Перейти к: навигация, поиск

"componentFromPoint()" Example

   <source lang="javascript">
   

<html> <body> <button onclick="alert(this.ruponentFromPoint(0, 0));">X coordinate</button> </body> </html>


     </source>
   
  


"componentFromPoint()" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | |<base> <basefont> | | | <bgsound> |

| |
|

| |<body>
| | |<button> |

| |
|

| | <col> | | |<colgroup> <comment> | | |<custom>

| | | |

| |<dir>
| | |
| | | <embed> | | |<fieldset> | | |<form> <frame> | | |<frameset> <head> | | |<hn>
|

| |<html> | | |<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"> | | | <isindex> | | | <label> |

| |<legend>
  • | | |<link> <listing> | | |<map> <marquee> | | |<menu> <nobr> | | |<noframes> <noscript> | | |<object>
      | | |<option>

      | | |<plaintext>

                               |
      |                |                                                       |
      |                |                                                     |
      |                |                          <script>                      |
      |                |<select>                                               |
      |                |                                                |
      |                |                                                 |
      |                |                                                  |
      |                |<tbody>                                                   |
      |                |                                                       |
      |                |
        | | | <xml> | | |<xmp> | +----------------+--------------------------------------------------------------+ </source>

        "componentFromPoint()" Possible Values

        <source lang="javascript"> 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.


        </source>



        "componentFromPoint()" Syntax, Parameters and Note

        <source lang="javascript"> 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.


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |<title>