HTMLQuoteElement: cite-Eigenschaft

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Die cite-Eigenschaft der HTMLQuoteElement-Schnittstelle gibt die URL für die Quelle des Zitats an. Sie spiegelt das cite-Attribut des <q>-Elements wider.

Wert

Ein String, der eine URL darstellt.

Beispiel

js
const quote = document.querySelector("q");
console.log(`Original source: ${quote.cite}`); // the current value
quote.cite = "https://example.com/quotes"; // updates the value

Spezifikationen

Specification
HTML
# dom-quote-cite

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
cite

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch