content | NN 6 IE 4 DOM 1 |
Read/Write | |
This is 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 acts 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. |
|
Despite the following example, 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.getElementById("refreshMeta").content = "5,http://www.giantco.com/basicindex.html"; |
|
Value | |
String. |
|
Default | |
None. |