JavaScript Reference/Javascript Properties/urn

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

"urn" Example

   <source lang="javascript">
   

<html> <body> <script language="JavaScript">

   function function1() {
       var m = document.all.myA.urn; 
       alert(m);
   }

</script> <input type="button" value="Get the urn" onclick="function1();"> <a id="myA" href=http://www.wbex.ru/ urn="wbex.ru Website">wbex.ru web page</a> </body> </html>


     </source>
   
  


"urn" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> namespace | +----------------+--------------------------------------------------------------+

     </source>
   
  


"urn" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Specifies the document URN (Uniform Resource Name).

Syntax:

document.all.elementID.urn = value namespace.urn = value


     </source>