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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS Help - Variable in URL from a form.

Status
Not open for further replies.

shortcutkid

Programmer
Feb 3, 1999
6
US
What I want the user to be able to do is type in a variable, and then click "GO". Let's say the variable they type is "12345678". The website they go when they click "GO" is "
All I want this to be is a form with a form field and a button. I used to have the script years ago, but lost it. Now, I can't for the life of me find it. Very annoying.
 
<form name="myForm">
<input name="myField">
<input type=button onCLick="document.location='newPage.asp?variable=" + document.myForm.myField.value + "'" value="Go There">

Programming today is a race between software engineers striving to build better and bigger idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. - Rick Cook (No, I'm not Rick)

zen.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top