Input from a text box into a url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Noodle7
    New Member
    • Jul 2006
    • 4

    Input from a text box into a url

    Hi

    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
    Thanks
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    Code:
    <input type="text" id="where">
    <input type="button" value="change page" onclick="window.location=document.getElementById('where').value + '.htm'">
    good luck theres a small sample i made you.

    Comment

    • Noodle7
      New Member
      • Jul 2006
      • 4

      #3
      Thank you !

      Comment

      Working...