In addition to the properties it inherits from the DOMNode interface, the DOMAttr interface supports the following properties:
name | |
Access | Read-only |
Type | String |
Description | The attribute name. |
Usage | |
JScript | DOMAttr_object.name; |
VBScript | DOMAttr_object.name |
Example |
// SoftQuad Script Language JSCRIPT: var attr = Selection.ContainerNode.getAttributeNode("Id"); Application.Alert(attr.name); |
specified | |
Access | Read-only |
Type | Boolean |
Description |
If this attribute is explicitly given a value in the document, returns true; otherwise, returns false. |
Usage | |
JScript | DOMAttr_object.specified; |
VBScript | DOMAttr_object.specified |
Example |
// SoftQuad Script Language JSCRIPT: var attr = Selection.ContainerNode.getAttributeNode("Id"); Application.Alert(attr.specified); |
value | |
Access | Read/write |
Type | String |
Description | The attribute value. Assignment is not implemented; use Selection.ContainerAttribute or Selection.ElementAttribute. |
Usage | |
JScript | DOMAttr_object.value; |
VBScript | DOMAttr_object.value |
Example |
// SoftQuad Script Language JSCRIPT: var attr = Selection.ContainerNode.getAttributeNode("Id"); Application.Alert(attr.value); |
Copyright © SoftQuad Software Inc. 1999