X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ins cite Property

ins Object Reference ins Object

Example

Return the URL to a document that explains why some text was inserted:

var x = document.getElementById("myIns").cite;

The result of x could be:

http://www.example.com/example/why_inserted.htm

Try it yourself »


Definition and Usage

The cite property sets or returns the value of the cite attribute of an inserted text.

The cite attribute specifies a URL to a document that explains the reason why the text was inserted/changed.

Note: The cite attribute has no visual effect in ordinary web browsers, but can be used by screen readers.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The cite property is supported in all major browsers.


Syntax

Return the cite property:

insObject.cite

Set the cite property:

insObject.cite=URL

Property Values

Value Description
URL Specifies the source URL to the document that explains why the text was inserted/changed.

Possible values:
  • An absolute URL - Points to another web site (like cite="http://www.example.com")
  • A relative URL - Points to a page within a web site (like cite="example.html")

Technical Details

Return Value: A String, representing the URL of the source document


More Examples

Example

Change the value of the cite attribute:

document.getElementById("myIns").cite = "http://www.example.com/whyweinsertedsometext.htm";

Try it yourself »


Related Pages

HTML reference: HTML <ins> cite attribute


ins Object Reference ins Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook