References cite attribute
Examples
It returns a reference to the source:
var x = document.getElementById ( "myQuote") cite.;
x The output is:
http://www.wwf.org
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
All major browsers support cite attribute.
grammar
Back cite attributes:
quoteObject .cite
Setting cite attributes:
quoteObject .cite = URL
Property Value
value | description |
---|---|
URL | URL reference sources. Possible values:
|
Technical Description
return value: | A string, URL address of the source document. |
---|
More examples
Examples
Modify property value cite references:
document.getElementById ( "myQuote") .cite = "http://www.cnn.com/";
try it"
Related Pages
HTML Reference Manual: HTML <Q> auf cite attribute