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

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

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

"onLayoutComplete" Example

    
<html><head>
<script language="JavaScript">
    function function1() {
        window.print();
    }
</script>
</head>
<body>
<p>Some body content to print</p>
<input type="button" 
       value="Print" 
       onclick="function1()"
       onlayoutcomplete="alert("The preview layout process is finished")">
</body>
</html>



"onLayoutComplete" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<base>                          <basefont>                    |
|                |<bgsound>                       <br>                          |
|                |<col>                           <dd>                          |
|                |<div>                           <dl>                          |
|                |<dt>                            <font>                        |
|                |<head>                          <hr>                          |
|                |<html>                          <li>                          |
|                |<meta>                          <ol>                          |
|                |<option>                        <p>                           |
|                |<title>                         <ul>                          |
+----------------+--------------------------------------------------------------+



"onLayoutComplete" Properties

+----------------+--------------------------------------------------------------+
| Properties     |altKey                          altLeft                       |
|                |contentOverflow                 ctrlLeft                      |
|                |shiftLeft                                                     |
+----------------+--------------------------------------------------------------+



"onLayoutComplete" Syntax and Note

Note:
    
This event fires when a print or print preview command completes execution.