Refers to the cite property

Refers to the cite property The reference object

Return a reference source:

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

x The output is:

http://www.wwf.org

Try it out . . .

Define and use

The cite property is used to set or return a referenced cite property value.

The cite property describes the URL source address of the reference.

Note: The cite property does not have visual effects in a normal web browser, but can be used by screen readers.


Browser Support

Refers to the cite property Refers to the cite property Refers to the cite property Refers to the cite property Refers to the cite property

Cite properties are supported by all major browsers.


Grammar

Returns the cite property:

quoteObject .cite

Set the cite property:

quoteObject .cite= URL

The property value

Value Describe
Url The URL of the referenced source.

Possible values:

  • Absolute URL - point to another website (e.g. cite s http://www.example.com")
  • Relative URL - points to a page within the site (e.g., cite" .html")

Description of the technology

Return value: A string, the URL address of the source document.


More instances

Modify the referenced cite property value:

document.getElementById("myQuote").cite="http://www.cnn.com/";

Try it out . . .

Related pages

HTML Reference Manual: HTML slt;q?cite properties


Refers to the cite property The reference object