DIV CSS 佈局教程網

JavaScript 學習筆記(十一):BOM 常用物件
編輯:JavaScript基礎知識     

document 物件

document 代表目前文件,可取得 title、URL、lastModified、referrer,也可存取 forms、images、links、anchors 等集合。

location 物件

location 代表目前網址,可讀取 hash、host、hostname、href、pathname、port、protocol、search。若要換頁且不保留歷史紀錄,可用 replace。

navigator 物件

navigator 可取得 appName、appVersion、language、platform、userAgent、plugins 等瀏覽器資訊。

screen 物件

screen 可取得螢幕寬高、可用寬高與色彩深度。開新視窗時,availWidth 與 availHeight 常用來計算可用區域。

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