可能重複:
Is there a way to catch the back button event in javascript?jQuery的向後或向前按鈕
我如何檢測一個向後或向前按鈕點擊?
例如
if(back_button_clicked)
{
alert('back button was clicked');
}
else if(forward_button_clicked)
{
alert('forwardbutton was clicked');
}
因爲我想運行一些特殊的功能,當用戶這樣做。
你剛纔問同樣的問題 - > http://stackoverflow.com/questions/8080151/running-jquery-ajax-function-when-user-clicks-the-back-or-forward-buttons – ManseUK
不一樣的問題!另一個與ajax有關! – Cameron