|
-
July 14th, 2008, 12:41 PM
#1
Help me!!!!
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....
-
July 14th, 2008, 01:49 PM
#2
Re: Help me!!!!
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.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
July 15th, 2008, 03:50 AM
#3
Re: Help me!!!!
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???
-
July 15th, 2008, 08:20 AM
#4
Re: Help me!!!!
Okay, that makes a lot more sense.
Code:
<input type="text" onchange="window.location=this.value" />
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|