JavaScript Reference/Javascript Properties/content
Версия от 21:30, 25 мая 2010; (обсуждение)
"content" Example
<source lang="javascript">
<html> <head> <meta id="myM" http-equiv="Content-Type"> <script language="JavaScript"> document.getElementById("myM").content = "text/html; charset=iso-8859-1" </script> </head> </body> </html>
</source>
"content" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |<meta> | +----------------+--------------------------------------------------------------+
</source>
"content" Syntax and Note
<source lang="javascript">
Note: Read and write property. Specifies the content attribute associated with the http-equiv or name attributes of the <meta> element.
Syntax:
document.getElementById("metaID").content = value document.all.metaID.content = value // IE only
</source>