Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assigning the contents of a text box onkeypress

Status
Not open for further replies.

emozley

Technical User
Jan 14, 2003
769
GB
Hi,

If I have 2 forms on a page is it possible to make whatever is typed into one text box in one form appear in another?

eg

<form method="post" action="thispage.asp">
<input type="text" name="ClientName" onkeypress...>
</form>

<form method="post" action="thatpage.asp">
<input type="hidden" name="TheClientName">
<input type="submit" value="Go">
</form>

Thanks very much

Ed
 
Assuming those are the only forms in the document:
Code:
onkeypress="document.forms[1].TheClientName.value=this.value"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top