populating a text box.

Results 1 to 2 of 2

Thread: populating a text box.

  1. #1
    Join Date
    Dec 1969

    Default populating a text box.

    I have a page in which a text box is populated when a link is clicked, is there a way with javascript that i could stop the page reloading?

  2. #2
    Join Date
    Dec 1969

    Default RE: populating a text box.

    It depends what you want to fill the field with. If you just want to put a static value in something like this would work<BR><BR>&#060;a href="javascript: LinkClicked()"&#062;Your Link&#060;/a&#062;<BR>&#060;script type="text/javascript"&#062;<BR><BR>function LinkClicked()<BR>{<BR>FORMNAME.FIELDNAME.value = "Some Value";<BR>}<BR>&#060;/script&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts