Blockquote citeProperty

Blockquote 对象参考手册Blockquote Object

Examples

Return a citation source:

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

xThe output result is:

http://www.worldwildlife.org/who/index.html

Try it Yourself »

Definition and Usage

The cite property is used to set or return the value of the cite attribute of a quotation.

The cite attribute describes the URL source address of the quotation.

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 property:

blockquoteObject.cite

Set the cite property:

blockquoteObject.cite=URL

Property Value

Value Description
URL The URL of the source of the quotation.

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 Details

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


More Examples

Example

Modify the cite attribute value of the quotation:

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

Try it Yourself »


Related Pages

HTML Reference Manual:HTML <blockquote> cite Attribute

Blockquote 对象参考手册Blockquote Object

Other Extensions