Click to See Complete Forum and Search --> : Help me!!!!


Suraj...
July 14th, 2008, 12:41 PM
:wave:
Can anyone tell me the javascript code for changing the address bar content...
Basically I want to create a button and a textbox and then I want the address bad to be http:// & the textbox contents and I also want the browser to immidiately go to that page when the button is pressed...
PLease help..I have 0 knowledge in Javascript.... :cry:

PeejAvery
July 14th, 2008, 01:49 PM
I'm sorry. I don't understand exactly what you are trying to do. What do you mean change the URL content? If you are attempting to mask the URL, you cannot do it by JavaScript.

Suraj...
July 15th, 2008, 03:50 AM
Ok...I'll make myself more clear....

Lets say there's a textbox on a page along with a button....
If I enter the word "google.com" in the text box and then click the button I
want it to automatically take me to the page http://www.google.com...
So what Javascript code do I need to use???

PeejAvery
July 15th, 2008, 08:20 AM
Okay, that makes a lot more sense.

<input type="text" onchange="window.location=this.value" />