Alex Rivera | Logout

How does facebook rewrite the source URL of a page in the browser address bar?

Asked 2010-10-03T12:40:07.827
60

Go to http://www.facebook.com/facebook?v=wall, then click on the info tab. The content will be loaded, and the address bar now becomes http://www.facebook.com/facebook?v=info but the webpage didn't reload.

At first I think it is Ajax, but my question is, how do you change the address bar without reloading? I know I can change anchor (#wall) using JS but querystring (?v=wall), how?

Edit
Report

1 Answer

0

For MooTools developers I recommend checking out cpojer's mootools-history plugin which provides support for the native history API when available, with a fallback to hashes.

answered 2010-10-21T22:54:50.690

Your Answer