How we can access a div
from JavaScript?
<body>
<div id="content">
<p>this is para</p>
</div>
<button onclick="fun()">show it</button>
<script>
function fun() {
var a = document.getElementById("content").value;
alert(a);
}
</script>
</body>