I made a small html file where I added two buttons "Read Text" and "Change Text".
I ran the html file and clicked the button to read the text. It read the value perfectly. Then I changed the value and repressed the button. The value didn't change. From the log I saw that the script was reseeting whenever I call a function. Why is this happening? How can I keep the script running during the html file is open?