Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

del cite property

del cite property

del Object Reference del Object

Example

Returns the URL of the document explaining why the text was deleted:

var x = document.getElementById("myDel").cite;

x The output result is:

http://www.example.com/example/why_deleted.htm

Try it »


Definition and usage

The cite property is used to set or return the value of the cite property of the deleted text.

The cite property points to the URL of another 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

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the cite attribute.


Syntax

Return the cite attribute:

delObject

.cite

Set the cite attribute:

delObject

.cite=

URL

Attribute values

Value Description
URL Defines the URL of the document explaining 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 of the source document

    More examples

    Example

    Modify the value of the cite property:

    document.getElementById("myDel").cite="http://www.example.com/whywedeletedsometext.htm";

    Try it »

    Related pages

    HTML Reference Manual: HTML cite attribute


    del Object Reference del Object