JavaScript DHTML/HTML/Meta Info
Содержание
"content" Example
<html>
<head>
<meta id="myMeta" http-equiv="Content-Type">
<script language="JavaScript">
document.getElementById("myMeta").content = "text/html; charset=iso-8859-1"
</script>
</head>
</body>
</html>
"name" Example
<html>
<body>
<script language="JavaScript">
document.tags("head").meta.name = "Description";
</script>
</body>
</html>
"scheme" Example
<html>
<head>
<meta id="myMeta1" name="date" content="10-25-2003">
<meta id="myMeta2" name="date" content="25-10-2003">
<script language="JavaScript">
document.all.myMeta1.scheme = "USA";
document.all.myMeta2.scheme = "Europe";
</script>
</head>
<body>
</body>
</html>
Specifies the binding of "meta" content to an HTTP response header
<html>
<meta id="myMeta">
<head>
<script language="JavaScript">
function function1() {
document.all.myMeta.httpEquiv = "refresh";
document.all.myMeta.content = 3;
}
</script>
</head>
<body>
<input type="button" value="Refresh this page every 3 seconds." onClick="function1();">
</body>
</html>