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
精彩评论