Answers for "how to change h1 tag text with js"

PHP
1

js change h1 value

document.getElementById("yourH1_element_Id").innerHTML = "yourTextHere";
Posted by: Guest on October-06-2020
0

get h1 text javascript

var h1Text = document.querySelector("h1").innerText;
Posted by: Guest on April-04-2021

Browse Popular Code Answers by Language