Download Source Code Aplikasi

Cite

Friday, September 27th, 2019 - HTML DOM, HTMLQuoteElement

Properti HTMLQuoteElement.cite menetapkan atau mengembalikan atribut CITE elemen Q atau elemen BLOCKQUOTE HTML.

Sintaks:

quoteObj.cite = value quoteObj.cite

value ialah DOMString yang dapat berisi full URIs (misal: ‘http://www.example.com/’), atau relative URIs (misal: ‘foo.html’ atau ‘../foo/’).

Contoh di bawah ini mengembalikan URL di mana kutipan yang digambarkan elemen Q diambil:

<Q ID="quoteID" CITE="http://www.example.com/myQuote.html">—Loreeem—</Q> <SCRIPT TYPE="text/javascript"> var quoteObj = document.getElementById("quoteID"); alert(quoteObj.cite); // "http://www.example.com/myQuote.html" </SCRIPT>

Contoh di bawah ini menetapkan URL di mana kutipan yang digambarkan elemen Q diambil:

<Q ID="quoteID">—Loreeem—</Q> <SCRIPT TYPE="text/javascript"> var quoteObj = document.getElementById("quoteID"); quoteObj.cite = "http://www.example.com/myQuote.html"; </SCRIPT>

Elemen Q di atas akan menjadi:

<Q ID="quoteID" CITE="http://www.example.com/myQuote.html">—Loreeem—</Q>
Demikian yang dapat kami share kepada sobat source code aplikasi pada kesempatan ini, semoga dapat bermanfaat dan bisa menjadi referensi pemrograman bagi anda. Jangan lupa like Fan Page kami, dan SUBSCRIBE Channel Youtube kami untuk dapatkan update source code aplikasi terbaru.
Download Source Code Aplikasi
Cite | Ahmad Code | 4.5