RetroGamer1991
09-17-2001, 01:20 PM
I need to be able to show up dynamic information when the user clicks a checkbox or button on the same page. document.write() makes the new information on a new page, I know I can do this by putting all my html in the document.write, but i dont want to.
Heres what I'm trying to do, there is a trivia question and when the user clicks a button he gets the answer, in text that is written below. It has to be text, no alert boxes, no textfields and NOT in a seperate page. I need to be able to make this appear and disappear and change the content dynamically, such as if something is set to the value 1, then when clicked set to value of 2, and then it can be changed back and forth whenever.
Is this possible in JavaScript?
I appreciate your help. Thanks.
Heres what I'm trying to do, there is a trivia question and when the user clicks a button he gets the answer, in text that is written below. It has to be text, no alert boxes, no textfields and NOT in a seperate page. I need to be able to make this appear and disappear and change the content dynamically, such as if something is set to the value 1, then when clicked set to value of 2, and then it can be changed back and forth whenever.
Is this possible in JavaScript?
I appreciate your help. Thanks.