admin管理员组

文章数量:1315831

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)

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)

Share Improve this question asked Nov 7, 2013 at 4:10 JamesJames 4781 gold badge7 silver badges18 bronze badges 1
  • 1 possible duplicate of Change the URL in the browser without loading the new page using JavaScript – Dennis C Commented Nov 7, 2013 at 4:34
Add a ment  | 

1 Answer 1

Reset to default 9

You want to take a look at HTML5 pushState(). Check out this article.http://diveintohtml5.info/history.html

本文标签: javascriptModal URL ChangeStack Overflow