del citeAttribute
Example
Return the URL document address that explains why the text was deleted:
var x = document.getElementById("myDel").cite;
xThe output result is:
http://www.example.com/example/why_deleted.htm
Try it yourself »
Definition and Usage
The cite attribute is used to set or return the cite attribute value of deleted text.
The cite attribute points to the URL of another document that explains the reason the text was deleted.
Note:The cite attribute has no visual effect in ordinary web browsers, but it can be used by screen readers.
Browser Support
![]()
All mainstream browsers support the cite attribute.
Syntax
Return the cite attribute:
delObject.cite
Set the cite attribute:
delObject.cite=URL
Attribute Value
| Value | Description |
|---|---|
| URL | Defines the URL document address that explains why the text was deleted. Possible values:
|
Technical Description
| Return value: | String, representing the URL address of the source document |
|---|
More Examples
Example
Modify the cite attribute value:
document.getElementById("myDel").cite="http://www.example.com/whywedeletedsometext.htm";
Try it yourself »
Related Pages
HTML Reference Manual:HTML <del> cite Attribute
Other Extensions
del Object