METANN n/a   IE 4   DOM 1

The META object reflects the META element.

 
HTML Equivalent
<META>
 
Object Model Reference
IE [window.]document.all.elementID
charsetNN n/a   IE 4   DOM n/a
 Read/Write
 

Character encoding of the content in the file associated with the href attribute. This property does not change the setting of the CHARSET attribute of a name/value pair contained by the CONTENT attribute or property. For now the charset property has little or no effect on a document.

 
Example
if (document.all.myMeta.charset == "csISO5427Cyrillic") {
    process for Cyrillic charset
}
 
Value
Case-insensitive alias from the character set registry (ftp://ftp.isi.edu/in-notes/iana/assignments/character-sets).
 
Default Determined by browser.
contentNN n/a   IE 4   DOM 1
 Read/Write
 

The equivalent of the "value" of a name/value pair. The property's corresponding CONTENT attribute is usually accompanied by either a NAME or HTTP-EQUIV attribute, either of which act as the "name" portion of the name/value pair. Specific values of the CONTENT attribute vary with the value of the NAME or HTTP-EQUIV attribute. Sometimes the CONTENT attribute value contains multiple values. In such cases, the values are delimited by a semicolon. Some of these multiple values may be name/value pairs in their own right, such as the content for a refresh META element. The first value is a number representing the number of seconds of delay before loading another document; the second value is a name/value pair indicating a URL of the document to load after the delay expires.

Changing the content property on a loaded document may not produce the desired effect if the browser relies on the incoming value as the document loads.

 
Example
document.all.refreshMeta.content ="5,http://www.giantco.com/basicindex.html"
 
Value
Any string of characters.
 
Default None.
httpEquivNN n/a   IE 4   DOM 1
 Read/Write
 

The equivalent of the "name" of a name/value pair. The property's corresponding HTTP-EQUIV attribute is usually accompanied by a CONTENT attribute, which acts as the "value" portion of the name/value pair. The author may elect to use the NAME attribute instead of the HTTP-EQUIV attribute, but only one may be set. Adjust only the property corresponding to the attribute used in the META element's tag. Then be sure to set the content property with a value that makes sense with the httpEquiv or name property

 
Example
document.all.refreshMeta.httpEquiv = "expires"
 
Value
String.
 
Default None.
urlNN n/a   IE 4   DOM n/a
 Read/Write
 

Microsoft claims that this property lets you change the URL of the CONTENT attribute of a META tag that reloads the page. This is not correct. Nor does changing the content property to a time and URL alter the information, which is captured by the browser when the document loads. Perhaps there will be some future application of this property.