YouTip LogoYouTip

Prop Del Cite

# del cite property [![Image 8: del Object Reference](#) del Object](#) ## Example Return the URL of the document that explains why the text was deleted: var x = document.getElementById("myDel").cite; The _x_ output will be: http://www.example.com/example/why_deleted.htm [Try it Β»](#) * * * ## Definition and Usage The cite property is used to set or return the value of the cite attribute of a deleted text. The cite property points to the URL of another document which explains why the text was deleted. **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](#) The cite property is supported by all major browsers. * * * ## Syntax Return the cite property: _delObject_.cite Set the cite property: _delObject_.cite=_URL_ ## Property Values | Value | Description | | --- | --- | | _URL_ | Defines the URL of the document that explains why the text was deleted. 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: document.getElementById("myDel").cite="http://www.example.com/whywedeletedsometext.htm"; [Try it Β»](#) ## Related Pages HTML Reference: [HTML cite Attribute](#) * * del Object](#)
← Prop Del DatetimeDom Obj Del β†’