JavaScript Reference/Javascript Properties/name 2

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

"name" Example

    
<html>
<body>
<script language="JavaScript">
    document.tags("head").meta.name = "Description";
</script>
</body>
</html>



"name" is applied to

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



"name" Syntax and Note

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