开发者

Hash links and History(Back and Forward)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜