targeting HTML, adding eventlistener , updating HTML / replacing HTML

PHOTO EMBED

Wed Nov 10 2021 15:35:00 GMT+0000 (UTC)

Saved by @KarenStewart #javascript

let applyNowButton = document.querySelector("button");

//eventlistener - how to make button react to being clicked

applyNowButton.addEventListener("click");
variable.addEventListener("submit");


//updating or replacing html
function updateHeading(newHeading) {
        let h1 = document.querySelector("h1");
        h1.innerHTML = newHeading;
      }
content_copyCOPY