JavaScript Reference/Javascript Properties/name 2
Версия от 18:30, 25 мая 2010; (обсуждение)
"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