HTMLQuoteElement: thuộc tính cite
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.
Thuộc tính cite của giao diện HTMLQuoteElement cho biết URL của nguồn trích dẫn. Nó phản ánh thuộc tính cite của phần tử <q>.
Giá trị
Một chuỗi đại diện cho một URL.
Ví dụ
js
const quote = document.querySelector("q");
console.log(`Nguồn gốc: ${quote.cite}`); // giá trị hiện tại
quote.cite = "https://example.com/quotes"; // cập nhật giá trị
Thông số kỹ thuật
| Thông số kỹ thuật |
|---|
| HTML> # dom-quote-cite> |