刷新后退前進(jìn)代碼

字號(hào):


    通過(guò)按鈕的onclick,調(diào)用js的window的history來(lái)進(jìn)行頁(yè)面的前進(jìn)后退
    <input type=button value=后退 onclick="history.go(-1)">
    <input type=button value=刷新 onclick="history.go(-0)">
    <input type=button value=前進(jìn) onclick="history.go(+1)">