del citeAttribute

del 对象参考手册del Object

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

Internet Explorer Firefox Opera Google Chrome Safari

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:
  • Absolute URL - points to another website (e.g., cite="http://www.example.com")
  • Relative URL - points to a page within the website (e.g., cite="example.html")

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


del 对象参考手册del Object

Other Extensions