6

I'm trying to open a Bootstrap Modal while changing the URL displayed in the browser's navigation bar. The user is not actually going to a different page, however when the Modal is open the URL will be different. Facebook does this with their URLS when you open photos, pinterest when you open pins, instagram, etc. What's the trick?

Thanks! (basic skills here)

4

1 回答 1

7

你想看看 HTML5 pushState()。看看这篇文章。http://diveintohtml5.info/history.html

于 2013-11-07T04:32:42.100 回答