I am trying to code a text box so that the user can enter a subdirectory (www.example.com/subdirectory
), but only the subdirectory, then press a "Go" button, and they will be taken to the subdirectory.
So, for example, if I had a subdirectory named "apple" (www.example.com/apple/
), the user could enter apple into a text box, then click go, and it would take them to www.example.com/apple/
What would my code be? Just give me a quick example, i can edit it from there.