Programmer's Guide > Interfaces > W3C Attr interface > value attribute
  
value attribute
On retrieval, the value of the attribute is returned as a string. Character and general entity references are replaced with their values. See also the method getAttribute on the Element interface.
On setting, this creates a Text node with the unparsed contents of the string. I.e. any characters that an XML processor would recognize as markup are instead treated as literal text. See also the method setAttribute on the Element interface.
value
Access
read-write
Returns
String
Set throws
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.