so I'm pretty new with html and need some help.
I'm trying to make 3 buttons and each of them will change the text next to when you click on them. I am using 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 the innerHTML=" ". The problem is that one I add to much text on the places ---future--- it won't load it anymore in the browser. The screen just won't update. How do I overcome this problem? I've been having this problem for quite some time so any help will be appriciated.