CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Help me!!!!

  1. #1
    Join Date
    May 2008
    Location
    India
    Posts
    26

    Talking 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....

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    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.

  3. #3
    Join Date
    May 2008
    Location
    India
    Posts
    26

    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???

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    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
  •  





Click Here to Expand Forum to Full Width

Featured