YouTip LogoYouTip

Prop Ins Cite

# ins cite attribute [![Image 8: ins Object Reference](#) ins Object](#) ## Example Return the URL document address explaining why the text was inserted: ```javascript var x = document.getElementById("myIns").cite; The output of _x_ will be: http://www.example.com/example/why_inserted.htm [Try it Β»](#) * * * ## Definition and Usage The cite property is used to set or return the value of the cite attribute of the `` element. The cite property points to the URL of another document that explains why the text was inserted or modified. **Note:** The cite property has no visual effect in regular web browsers, but it 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](#) The cite property is supported by all major browsers. * * * ## Syntax Return the cite property: ```javascript _insObject_.cite Set the cite property: ```javascript _insObject_.cite=_URL_ ## Property Values | Value | Description | | --- | --- | | _URL_ | Defines the URL document address that explains why the text was inserted or modified. 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, representing the URL of the source document | | --- | * * * ## More Examples ## Example Change the cite attribute value: ```javascript document.getElementById("myIns").cite="http://www.example.com/whyweinsertedsometext.htm"; [Try it Β»](#) ## Related Articles HTML Reference: [HTML cite attribute](#) * * ins Object](#)
← Prop Ins DatetimeDom Obj Ins β†’