del cite Property
Example
Return the URL to a document that explains why some text was deleted:
var x = document.getElementById("myDel").cite;
The result of x could be:
http://www.example.com/example/why_deleted.htm
Try it yourself »
Definition and Usage
The cite property sets or returns the value of the cite attribute of a deleted text.
The cite attribute specifies a URL to a document that explains the reason why the text was deleted.
Note: The cite attribute has no visual effect in ordinary web browsers, but can be used by screen readers.
Browser Support
The cite property is supported in all major browsers.
Syntax
Return the cite property:
delObject.cite
Set the cite property:
delObject.cite=URL
Property Values
Value | Description |
---|---|
URL |
Specifies the source URL to the document that explains why the text was
deleted. Possible values:
|
Technical Details
Return Value: | A String, representing the URL of the source document |
---|
More Examples
Example
Change the value of the cite attribute:
document.getElementById("myDel").cite = "http://www.example.com/whywedeletedsometext.htm";
Try it yourself »
Related Pages
HTML reference: HTML <del> cite attribute
del Object