JavaScript Reference/Javascript Objects/window
Версия от 18:30, 25 мая 2010; (обсуждение)
Содержание
"window" Event handlers
+----------------+--------------------------------------------------------------+
| Event handlers |onActivate onAfterPrint |
| |onBeforeDeactivate onBeforePrint |
| |onBeforeUnload onBlur |
| |onControlSelect onDeactivate |
| |onError onFocus |
| |onHelp onLoad |
| |onMove onMoveEnd |
| |onMoveStart onResize |
| |onResizeEnd onResizeStart |
| |onScroll onUnload |
+----------------+--------------------------------------------------------------+
"window" Example
<html>
<body>
<button onclick="window.navigate("http://www.wbex.ru");">
Go to www.wbex.ru page</button>
</body>
</html>
"window" JavaScript Collections
+----------------+--------------------------------------------------------------+
| JavaScript |frames |
+----------------+--------------------------------------------------------------+
"window" JavaScript Methods
+----------------+--------------------------------------------------------------+
| JavaScript |alert attachEvent |
| Methods |back blur |
| |clearInterval clearTimeout |
| |close confirm |
| |createPopup detachEvent |
| |execScript focus |
| |forward moveBy |
| |moveTo navigate |
| |open print |
| |prompt resizeBy |
| |resizeTo scroll |
| |scrollBy scrollTo |
| |setActive setInterval |
| |setTimeout showHelp |
| |showModalDialog showModelessDialog |
+----------------+--------------------------------------------------------------+
"window" JavaScript Objects
+----------------+--------------------------------------------------------------+
| JavaScript |clientInformation clipboardData |
| Objects |document event |
| |external history |
| |location navigator |
| |screen |
+----------------+--------------------------------------------------------------+
"window" JavaScript Properties
+----------------+--------------------------------------------------------------+
| JavaScript |closed defaultStatus |
| Properties |dialogArguments dialogHeight |
| |dialogLeft dialogTop |
| |dialogWidth frameElement |
| |length name |
| |offscreenBuffering opener |
| |parent returnValue |
| |screenLeft screenTop |
| |self status |
| |top |
+----------------+--------------------------------------------------------------+
"window" Syntax and Note
Note:
Access to a browser window.
If a web page contains frames, then each frame will
correspond to its own window object.
Syntax:
window.memberName