ins citeProperties
Examples
Returns the URL of the document that explains why the text was inserted:
var x = document.getElementById("myIns").cite;
xThe output is:
http://www.example.com/example/why_inserted.htm
Try it yourself »
Definition and Usage
The cite property is used to set or return the value of the cite attribute of the inserted text.
The cite attribute points to the URL of another document that explains why the text was inserted or modified.
Note:The cite attribute has no visual effect in ordinary web browsers, but can be used by screen readers.
Browser Support
![]()
All major browsers support the cite attribute.
Syntax
Return the cite property:
insObject.cite
Set the cite property:
insObject.cite=URL
Property Values
| Value | Description |
|---|---|
| URL | Defines the URL of the document that explains why the text was inserted or modified. Possible values:
|
Technical Details
| Return Value: | String, representing the URL address of the source document |
|---|
More Examples
Example
Change the cite property value:
document.getElementById("myIns").cite="http://www.example.com/whyweinsertedsometext.htm";
Try it yourself »
Related Articles
HTML Reference Manual:HTML <ins> cite Attribute
Other Extensions
ins Object