JavaScript Reference/Event Handlers Reference/onLoad
Содержание
"onLoad" Example
<html>
<body onLoad="alert("The document is fully loaded")">
<img src="http://www.wbex.ru/style/logo.png">
</body>
</html>
"onLoad" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<applet> <body> |
| |<embed> <frame> |
| |<frameset> <iframe> |
| |<img> <link> |
| |<object> <script> |
| |window |
+----------------+--------------------------------------------------------------+
"onLoad" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |clientX clientY |
| |ctrlLeft offsetX |
| |offsetY screenX |
| |screenY shiftLeft |
| |type x |
| |y |
+----------------+--------------------------------------------------------------+
"onLoad" Syntax and Note
Note:
This event fires immediately after a document, frameset, or image is fully loaded.