Name
content — NN n/a IE 4 DOM 1
Synopsis
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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access