cite property
Sets or retrieves the location of the source document.
There isn't any functionality implemented for this property in commonly used browsers, it contains information for authors only.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: cite |
Possible values:
String that sets or retrieves the URL of the source document.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the cite attribute:
|
||||
Some text before the quotation. <q cite="http://www.quotationspage.com/quotes/Benjamin_Franklin/"> All would live long, but none would be old. </q> Some text after the quotation. |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the cite property:
|
||||
<head> <script type="text/javascript"> function GetCite () { var quote = document.getElementById ("myQuote"); alert (quote.cite); } </script> </head> <body> <q id="myQuote" cite="http://www.quotationspage.com/quotes/Benjamin_Franklin/"> All would live long, but none would be old. </q> <button onclick="GetCite ();">Get Cite!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
HTML elements:
External links:
User Contributed Comments