Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get h1 text javascript

var h1Text = document.querySelector("h1").innerText;
 
PREVIOUS NEXT
Tagged: #text #javascript
ADD COMMENT
Topic
Name
5+7 =