Latest web development tutorials

Blockquote cite attribute

Blockquote Object Reference Blockquote objects

Examples

It returns a reference to the source:

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

x The output is:

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

try it"

Definitions and use

cite cite property sets or returns the property value of a reference.

cite attribute describes the URL address of the source cited.

Note: cite property has no visual effect in an ordinary Web browser, but you can use screen readers.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support cite attribute.


grammar

Back cite attributes:

blockquoteObject .cite

Setting cite attributes:

blockquoteObject .cite = URL

Property Value

value description
URL URL reference sources.

Possible values:

  • Absolute URL - points to another web site (like cite = "http://www.example.com")
  • Relative URL - points to a page within the site (for example, cite = "example.html")

Technical Description

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


More examples

Examples

Modify property value cite references:

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

try it"


Related Pages

HTML Reference Manual: HTML <blockquote> auf cite attribute

Blockquote Object Reference Blockquote objects