I need to make a script that can modify the already existing header tag. So in the <header> it says "Original Content" and I need to change it to "new content". I have to do that using the <button> tag and an event handler, but I have no idea what to use after the onclick. I also have another button that has to delete the text of the <header>. Is that a whole different story? Any answer will be appreciated.
How to make a JavaScript function that can delete/modify text/tags from the HTML?
Collapse
X
Comment