so i'm pretty new to html and need some help.
I am trying to make 3 buttons, and each of them will change the text next to when you click on them. I use the following code for each button:
<a href="#" onClick="document.getElementById('past').innerHTML='---future---';">
When I click on the button, the text will change in the text after innerHTML = "". The problem is that I am adding a lot of text locally --- the future --- it will no longer load it in the browser. The screen just wonβt refresh. How do I solve this problem? I had this problem for quite some time, so any help would be assigned.
source share