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

ins cite property

ins cite property

ins Object Reference ins Object

Example

Return the URL of the document explaining why the text was inserted:

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

x The output result is:

http://www.example.com/example/why_inserted.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 attribute points to the URL of another document that explains the reason why the text was inserted or modified.

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:

insObject

.cite

Set the cite attribute:

insObject

.cite=

URL

Attribute values

Value Description
URL Defines the URL of the document explaining why the text was inserted or modified.
 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 cite attribute value:

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

    Try it »

    Related Articles

    HTML Reference Manual: HTML cite attribute


    ins Object Reference ins Object