469,338 Members | 8,115 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,338 developers. It's quick & easy.

Input from a text box into a url


I have a input text box and this input text must take the text entered into it and direct it to a URL. so if a person enters a 100 into the text box it must take them to www.help.org/100.htm , there will be alot of the pages
www.help.org/101.htm and www.help.org/102.htm etc ....

so I am looking to have a generic www.help.org/xxx.htm and have script that adds the number in the url www.help.org/100.htm ....therefor the script just added in the 100...

Hoping someone can help me with this one
Jul 27 '06 #1
2 2625
1,208 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. <input type="text" id="where">
  2. <input type="button" value="change page" onclick="window.location=document.getElementById('where').value + '.htm'">
good luck theres a small sample i made you.
Jul 27 '06 #2
Thank you !
Jul 28 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by j.t.w | last post: by
10 posts views Thread by omerbutt | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.