HTML DOM name Property
Complete Meta Object Reference
Definition and Usage
The name property connects the content attribute to a name.
Syntax
metaObject.name=author|description|keywords|generator|
revised|others
|
Example
The following example has a <meta> tag that defines some keywords for search
engines. The script below returns the name of the content attribute:
<html>
<head>
<meta name="keywords" content="HTML,DHTML,CSS,JavaScript" />
</head>
<body>
<script type="text/javascript">
x=document.getElementsByTagName("meta")[0];
document.write("Meta name: " + x.name);
</script>
</body>
</html>
|
Try-It-Yourself Demos
Get the
name of the content attribute of a <meta> element
Complete Meta Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|