开发者

hashchange for backbutton and ajax call

开发者 https://www.devze.com 2023-02-22 10:10 出处:网络
Is there a way to seperate a hashchange that occurs after a w开发者_StackOverflow中文版indow.location.hash = \'x\'

Is there a way to seperate a hashchange that occurs after a

w开发者_StackOverflow中文版indow.location.hash = 'x'

from the one that occurs after clicking the backbutton?


Right now, in Internet Explorer 8, Firefox 3.6+, and Chrome 5+, you can bind callbacks to the window.onhashchange event and use it without any kind of plugin.

For those Browsers does NOT support onhashchange, you can use Jquery plugin http://plugins.jquery.com/project/hashchange

0

精彩评论

暂无评论...
验证码 换一张
取 消