I want a script where when you click different links, it changes certain text. I'm doing it like this:
<a href="blah.html" onClick="document.write('Blah');">Blah</a>
My only problem is, instead of writing "blah" on the existing page, it goes to a blank page with "blah" written on it. How can I fix this? Is there something better than document.write that I could use? Thanks.
<a href="blah.html" onClick="document.write('Blah');">Blah</a>
My only problem is, instead of writing "blah" on the existing page, it goes to a blank page with "blah" written on it. How can I fix this? Is there something better than document.write that I could use? Thanks.