开发者

Ajax - Back button?

I have the following jQuery code:

$("a").click(function() {
    if ($(this).attr('href') != '#') {
        if (strpos($(this).attr('href'), 'mob.php') !== false) {
            $.ajax({
              url: $(this).attr('href')+"&logo=0",
              cache: false,
              success: function(html){
                $("#ajax").html(html);
              }
            });
            return false;
        }
    }
});

The problem is that whe开发者_开发知识库n someone presses the back button they leave the website instead of going back to the previous page. Is there a work around for this?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜