| Property | Description |
|---|---|
| self | - |
| parent | - |
| top | - |
| opener | - |
| name | - |
| closed | window 是否已關閉 |
| document | Document object |
| toolbar | 是否顯示 tool bar |
| scrollbars | 是否顯示 scrollbars |
| statusbar | 是否顯示 statusbar |
| personalbar | 是否顯示工具列 |
| defaultStatus | statusbar 的 default text |
| status | statusbar 的內容 |
| history | History object |
| location | Location object |
| outerheight | 整個視窗的 height |
| outerwidth | 整個視窗的 width |
| pageXOffset | window 在視窗中的 X 座標 |
| pageYOffset | window 在視窗中的 Y 座標 |
| length | 該視窗的頁框數量 |
| frames[] | 該視窗的頁框陣列 |
方法:
| Method | Description |
|---|---|
| open([URL,name,specs,replace]) | - |
| close() | - |
| print() | - |
| focus() | - |
| blur() | - |
| createPopup() | 彈出視窗 |
| alert(message) | 彈出訊息框 |
| confirm(message) | 彈出確認框 |
| prompt(message,defaultText) | 彈出輸入框 |
| moveBy() | 從目前位置移動視窗 |
| moveTo() | 移動視窗到指定座標 |
| resizeBy() | 依目前大小 Resize 視窗 |
| resizeTo() | Resize 視窗到指定大小 |
| scrollBy() | 依目前顯示內容捲動視窗 |
scrollTo(x, y) | 捲動視窗到指定座標 |
| setInterval(func,millisec[,"lang"]) | 循環計時器(每 millisec毫秒執行 func 方法) |
| setTimeout(func,millisec[,"lang"]) | 計時器(每 millisec毫秒執行 func 方法) |
| clearInterval(id) | 利用 setInterval 回傳的 id 值清除之 |
| clearTimeout(id) | 利用 setTimeout 回傳的 id 值清除之 |
1 則留言:
不錯哦...很詳細吶...感謝
張貼留言