html programming help?

qwerty

New member
So basically I am making a programming. Within it I have a question, then I have a button. I can't get the button to display text when it is clicked. I have been writing:

<input type="button" value="Yes" onClick = "document.write ("text")">
<input type="button" value="No" onClick = "document.write ("text")>

Everything seems to be working when I run the program accept for the onClick answer when I click the button. Whats the problem? Please help.
Sorry I made a typo which was not to your liking. I had changed my sentence, but forgot to change the form of the word "program". You don't need to be an asshole about it. Thank you for the legitimate answers. I will try them out right now!
 
Back
Top