JavaScript DHTML/HTML/Meta Info
Содержание
"content" Example
<source lang="html4strict">
<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>
</source>
"name" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript">
document.tags("head").meta.name = "Description";
</script> </body> </html>
</source>
"scheme" Example
<source lang="html4strict">
<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>
</source>
Specifies the binding of "meta" content to an HTTP response header
<source lang="html4strict">
<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>
</source>