Getting Backbutton to work in single page website and implementing “speaking” URLs

前端 未结 4 1048
甜味超标
甜味超标 2020-12-10 12:30

I have a single page website and would like to achieve the following:

  1. back button working as if it was a normal website

  2. and instead of say,

4条回答
  •  既然无缘
    2020-12-10 12:57

    HTML5 provides a api that support browser history and you can manage the url without reloading.

    check this link

    http://diveintohtml5.info/history.html

    Demo is

    http://html5demos.com/history

提交回复
热议问题