YouTip LogoYouTip

Prop Quote Cite

# Quote cite Attribute [![Image 8: Quote Object Reference](#)Quote Object](#) ## Example Returns the source of a quote: var x = document.getElementById("myQuote").cite; _x_ output: http://www.wwf.org [Try it Β»](#) * * * ## Definition and Usage The cite property is used to set or return the value of the cite attribute of a quote. The cite property describes the URL source of the quote. **Note:** The cite property has no visual effect in normal web browsers, but can be used by screen readers. * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) All major browsers support the cite property. * * * ## Syntax To get the cite property: _quoteObject_.cite To set the cite property: _quoteObject_.cite=_URL_ ## Property Values | Value | Description | | --- | --- | | _URL_ | The URL of the source of the quote. 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 source document. | | --- | * * * ## More Examples ## Example Change the cite attribute value of a quote: document.getElementById("myQuote").cite="http://www.cnn.com/"; [Try it Β»](#) ## Related Pages HTML Reference: [HTML cite Attribute](#) * * Quote Object](#)
← Dom Obj ColDom Obj Quote β†’