最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Modal URL Change - Stack Overflow

programmeradmin0浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论