Latest web development tutorials

ins cite attribute

ins Object Reference ins objects

Examples

Back explain why the text document URL address is inserted:

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

x The output is:

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

try it"

Definitions and use

cite cite attribute is used to set or return the property value to delete text.

cite attribute points to another document URL, the reason being inserted or modify this document interpretable text.

Note: cite property has no visual effect in an ordinary Web browser, but you can use screen readers.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support cite attribute.


grammar

Back cite attributes:

insObject .cite

Setting cite attributes:

insObject .cite=URL

Property Value

value description
URL It defines explain why the text is inserted into the document or modify the URL address.

Possible values:
  • Absolute URL - points to another web site (like cite = "http://www.example.com")
  • Relative URL - points to a page within the site (for example, cite = "example.html")

Technical Description

Return Value: String representing the URL of the source document


More examples

Examples

Modify cite attribute values:

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

try it"

related articles

HTML Reference Manual: HTML <INS> auf cite attribute


ins Object Reference ins objects