ZVON
>
References
>
DOM1 Reference
Intro
/
Search
/
ZVON
[Back]
[Go to standard]
[Glossary]
[Help]
value (attribute)
Owning interface and usage:
Attr
.
value
Member of these other interfaces :
none
Readonly:
no
Type:
DOMString
Description:
On retrieval, the value of the attribute is returned as a string. Character and general entity references are replaced with their values. On setting, this creates a
Text
node with the unparsed contents of the string.
Exception:
DOMException
NO_MODIFICATION_ALLOWED_ERR
This exception raises on setting when the node is readonly.
Example:
JavaScript:
var attr = document.createAttribute('temp'); attr.value = 'temporary'; var output = attr.value;
Output:
desired
your browser
temporary