JavaScript Reference/Event Handlers Reference/onLayoutComplete

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

"onLayoutComplete" Example

   <source lang="javascript">
   

<html><head> <script language="JavaScript">

   function function1() {
       window.print();
   }

</script> </head> <body>

Some body content to print

<input type="button"

      value="Print" 
      onclick="function1()"
      onlayoutcomplete="alert("The preview layout process is finished")">

</body> </html>


     </source>
   
  


"onLayoutComplete" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<base> <basefont> | | |<bgsound>
| | |<col>

|

| |
|

| |

|

| |<head>
| | |<html>
  • | | |<meta>
      | | |<option>

      | | |<title>

        | +----------------+--------------------------------------------------------------+ </source>

        "onLayoutComplete" Properties

           <source lang="javascript">
        

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

             </source>
           
          
        


        "onLayoutComplete" Syntax and Note

           <source lang="javascript">
        

        Note:

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

        </source>