ins citare Proprietà
Esempio
Restituisci l'URL a un documento che spiega perché è stato inserito del testo:
var x = document.getElementById("myIns").cite;
Definizione e utilizzo
La proprietà cite imposta o restituisce il valore dell'attributo cite di un testo inserito.
L'attributo cite specifica un URL a un documento che spiega il motivo per cui il testo è stato inserito/modificato.
Nota: l'attributo cite non ha alcun effetto visivo nei normali browser Web, ma può essere utilizzato dagli screen reader.
Supporto del browser
Property | |||||
---|---|---|---|---|---|
cite | Yes | Yes | Yes | Yes | Yes |
Sintassi
Restituisce la proprietà cite:
insObject.cite
Imposta la proprietà cite:
insObject.cite = URL
Valori di proprietà
Value | Description |
---|---|
URL |
Specifies the source URL to the document that explains why the text was inserted/changed. Possible values:
|
Dettagli tecnici
Valore di ritorno: | Una stringa, che rappresenta l'URL del documento di origine |
---|
Altri esempi
Esempio
Modifica il valore dell'attributo cite:
document.getElementById("myIns").cite = "http://www.example.com/whyweinsertedsometext.htm";
Pagine correlate
Riferimento HTML: attributo HTML <ins> cite
❮ in Oggetto