How to change the value inside a class tag in HTML?
class="headerLogo">BHURTEL<
I want to change "BHURTEL" using user input string using prompt method. I tried this:
let name = prompt("Input your name:");
document.getElementsByClassName('headerLogo').innerHTML = name;
but it didn't work! is there a way to do it? Or it's not possible?