开发者

hashchange for backbutton and ajax call

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜