HTML DOM Quote Object
Haal voorwerp aan
Die Quote-objek verteenwoordig 'n HTML <q>-element.
Toegang tot 'n Quote Object
Jy kan toegang tot 'n <q>-element kry deur getElementById():
Voorbeeld
var x = document.getElementById("myQuote");
Skep 'n Quote Object
Jy kan 'n <q> element skep deur die document.createElement() metode te gebruik:
Voorbeeld
var x = document.createElement("Q");
Haal Object Properties aan
Property | Description |
---|---|
cite | Sets or returns the value of the cite attribute of a quotation |
Standaard eiendomme en geleenthede
Die Quote-objek ondersteun ook die standaard eienskappe en gebeurtenisse .
Verwante bladsye
HTML verwysing: HTML <q> tag
JavaScript-verwysing: HTML DOM Blockquote Object