JavaScript Reference/Javascript Properties/name 2

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

"name" Example

   <source lang="javascript">
   

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

   document.tags("head").meta.name = "Description";

</script> </body> </html>


     </source>
   
  


"name" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<meta> | +----------------+--------------------------------------------------------------+

     </source>
   
  


"name" Syntax and Note

   <source lang="javascript">

Note: Read and write property. Name property of a <meta> element. Default values are Description, Generator, Keywords, ProgID, Robots, and Template.

Syntax:

document.getElementById("metaID").name = value document.all.metaID.name = value // IE only


     </source>