get text paragraph javascript code example
Example 1: javascript get text from paragraph
function getContent() {
return document.getElementById("myParagraph").innerHTML;
}
Example 2: access paragraph text in javascript
var x =
document.getElementById("myBtn").textContent;