del cite Attribute
Definition and usage
cite
Sets or returns the value of the cite attribute of the deleted text.
<del> cite attribute Specifies the URL of the document that explains the reason for deleting the text.
Note:cite attribute No visual effect in a standard web browser, but can be used by screen readers.
See also:
HTML Reference Manual:HTML <del> Tag
Example
Example 1
Return the URL pointing to the document that explains the reason for deleting the text:
var x = document.getElementById("myDel").cite;
Example 2
Change the value of the cite attribute:
document.getElementById("myDel").cite = "http://www.example.com/whywedeletedsometext.htm";
Syntax
Return the cite attribute:
delObject.cite
Set the cite attribute:
delObject.cite = URL
Attribute value
Value | Description |
---|---|
URL |
The source URL of the document that specifies the reason for deleting the explanation text. Possible values:
|
Technical Details
Return Value: | String value representing the URL of the source document. |
---|
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |
Related Pages
HTML Reference Manual:HTML <del> cite Attribute