Like using onclick js to change the html structure to be changed forever?

How to make clicking the button the text is changed not only for depression, but stayed until the next depression?
function change_text(){
 document.querySelector("#text_").innerHTML = "New text"
}
document.querySelector("#button_").onclick = change_text
April 3rd 20 at 17:16
1 answer
April 3rd 20 at 17:18
Solution
In short, the problem was due to the fact that my button was in form
the page is reloaded? - Elise.Kohl commented on April 3rd 20 at 17:21

Find more questions by tags JavaScript