Get Blockquote Element - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Blockquote


The Blockquote object represents an HTML <blockquote> element.

You can access a <blockquote> element by using getElementById():

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>

<blockquote id="myBlockquote" cite="">
tutorial //from  www  . j  a va  2  s. c om

<button onclick="myFunction()">Test</button>

<p id="demo"></p>

function myFunction() {
    var x = document.getElementById("myBlockquote").cite;
    document.getElementById("demo").innerHTML = x;


Related Tutorials