DIV CSS 佈局教程網

10.5 history 物件操作瀏覽紀錄
編輯:JavaScript基礎知識     

history 物件

window.history 可控制瀏覽器的前後頁紀錄。

window.history.back();
window.history.forward();
window.history.go(-1);

back() 回到上一頁,forward() 前往下一頁,go() 可指定相對頁數。這與網站分頁功能不同,讀者要注意區別。

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved