Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    39
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Changing URL after every keypress?

    Is it possible to change the part of the URL after a # symbol using javascript (and not anchor tags)?

    ie. is there a way to change http://localhost/#one to http://localhost/#two with a javascript function/event?

    Is it compatible with major browsers?

    Thanks for the help

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,308
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    Changing URL after every keypress?

    Can I ask why you would want to that?

  • #3
    New Coder
    Join Date
    Jul 2006
    Posts
    39
    Thanks
    7
    Thanked 0 Times in 0 Posts
    i'm writing some ajax search engine and the url's are handled as follows:

    http://localhost/search#q=<search term>

    and i'd like to implement searching after every few keypresses so ideally the url should reflect the current query


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •