Results 1 to 2 of 2

Thread: [RESOLVED] [JavaScript] Change URL in Address Bar

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2008
    Posts
    1,754

    Resolved [RESOLVED] [JavaScript] Change URL in Address Bar

    On Facebook if you click on a button like "Messages", for example, your messages will appear on the page and the URL in the address bar will change to reflect that you are looking at messages. The actual page doesn't change because your notifications bar/chat window on the right hand side of the page doesn't refresh/reload. How does Facebook do this?

  2. #2
    Frenzied Member
    Join Date
    Apr 2009
    Location
    CA, USA
    Posts
    1,516

    Re: [JavaScript] Change URL in Address Bar

    HTML 5 history API, in particular history.pushState(). In browsers that don't support it, looks like it's just using normal links.

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