Latest web development tutorials

del cite attribute

del Object Reference del objects

Examples

Returns the URL of the document address is interpreted text is deleted:

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

x The output is:

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

try it"

Definitions and use

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

cite attribute URL pointing to another document, because this document can be interpreted text is deleted. .

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:

delObject .cite

Setting cite attributes:

delObject .cite=URL

Property Value

Value 描述
URL 定义了解释文本为什么被删除的URL文档地址。

Possible values:
  • 绝对 URL - 指向另一个网站(比如 cite="http://www.example.com")
  • 相对 URL - 指向网站内的一个页面(比如 cite="example.html")

Technical Description

return value: String representing the URL of the source document


More examples

Examples

Modify cite attribute values:

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

try it"

Related Pages

HTML Reference Manual: HTML <del> auf cite attribute


del Object Reference del objects