JavaScript Reference/Event Handlers Reference/onLoad — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
 
м (1 версия)
 
(нет различий)

Текущая версия на 08:22, 26 мая 2010

"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.