Forum Moderators: open

Message Too Old, No Replies

Need "custom location bar"

         

ryoung

4:47 pm on Jan 27, 2009 (gmt 0)

10+ Year Member



Basically, I want to have users enter a string (e.g., 1234) into a text box, click on the GO button, and then be taken to
http://example.com/page.php?1234

Is that possible, and if so, how is it done?

Any help is greatly appreciated!

[edited by: eelixduppy at 9:24 pm (utc) on Jan. 27, 2009]
[edit reason] snipped URLs [/edit]

eelixduppy

9:27 pm on Jan 27, 2009 (gmt 0)



Hello and Welcome to WebmasterWorld!

You have to grab the text from the textbox and change the location:


document.location = "http://example.com/page.php?" + escape(document.getElementById('[i]input_id[/i]').value);