开发者

Hash links and History(Back and Forward)

开发者 https://www.devze.com 2023-03-28 09:02 出处:网络
When I press on the hash button(e.g : http://test/#userid=1), I get the requested page开发者_JS百科 but I can not return to previous page via the browser\'s back button. In Mozilla Firefox 5, the back

When I press on the hash button(e.g : http://test/#userid=1), I get the requested page开发者_JS百科 but I can not return to previous page via the browser's back button. In Mozilla Firefox 5, the back button works, but not in others browsers.

I want javascript code or jquery code (Code not plugin if possible) to make the back button work in major browsers.


The jQuery history plugin reports that it can solve the problem you're having. It appears to use an iframe hack for properly preserving the history in IE.

0

精彩评论

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