PHP - How do facebook change the facebook/message/username to facebook/message/username2 on the same page? : <p>I'm trying to create a real-time chat on my website. One of the functions I want to imitate is how <a href="http://facebook.com/messages/" rel="nofollow">facebook.com/messages</a> changes not only content of the webpage but also the url without refreshing. I think this is a lot cleaner more efficient. </p>

<p>My current process is just a <code>("#class_name").click</code> with a <code>var id = $(this).attr("id")</code> running with an <strong>Ajax</strong>.</p>
