JavaScript Reference/Javascript Properties/scopeName

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

"scopeName" Example

   <source lang="javascript">
   

<html id="myHtml" xmlns:yourNs> <body> <button onclick="alert("The scopeName property value is "+document.all.myHtml.scopeName)"> Click here </button> </body> </html>


     </source>
   
  


"scopeName" 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>

        "scopeName" Syntax and Note

        <source lang="javascript"> Note: Read-only property. Associated with an XML island in the HTML document. Returns the namespace defined for the element.

        Syntax:

        document.all.elementID.scopeName


        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |<title>