Gli ultimi tutorial di sviluppo web
 

ins citare Proprietà

ins Object Reference ins Object

Esempio

Restituire l'URL di un documento che spiega il motivo per cui un testo è stato inserito:

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

Il risultato di x può essere:

http://www.example.com/example/why_inserted.htm
Prova tu stesso "

Definizione e utilizzo

Cité insiemi di proprietà o restituisce il valore della cite attributo di un testo inserito.

La cite attributo specifica un URL a un documento che spiega il motivo per cui è stato inserito il testo / cambiato.

Nota: La cite attributo non ha effetto visivo nei browser web normali, ma può essere utilizzato da lettori di schermo.


Supporto per il browser

Internet ExplorerFirefoxOperaGoogle ChromeSafari

La proprietà citare è supportata in tutti i principali browser.


Sintassi

Restituire il bene citare:

insObject .cite

Impostare la proprietà citare:

insObject .cite=URL

I valori delle proprietà

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")

Dettagli tecnici

Valore di ritorno: Una stringa, che rappresenta l'URL del documento di origine

Altri esempi

Esempio

Modificare il valore della cite attributi:

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

Pagine correlate

Di riferimento HTML: HTML <ins> citare attributo


ins Object Reference ins Object