Updating a text box on click.

  • Posted on January 9, 2010 at 1:13 pm

Click in this box to enjoy your message.

  1. function how_are_you2()
  2. {
  3. document.main_screen2.talking2.value = "How are you gentlemen?";
  4. }
<p>Click in this box to enjoy your message.</p>
<form name=main_screen2>
<input name=talking2 onClick="how_are_you2();">
</form>

Leave a Reply

You must be logged in to post a comment.