JavaScript Reference/Event Handlers Reference/onReadyStateChange

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

"onReadyStateChange" Example

   <source lang="javascript">
   

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

 document.onreadystatechange=function1;
 function function1 () {
 if (document.readyState=="complete") {
    alert("The document ready state is "complete"") 
 }

} </script> </head> <body>

Body content

</body> </html>


     </source>
   
  


"onReadyStateChange" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | |<base> <basefont> | | | <bgsound> |

| |
|

| |<body>
| | |<button> |

| |
|

| | <col> | | |<colgroup> <comment> | | |<custom>

| | | |

| |<dir>
| | |
document | | |
| | |<embed> <fieldset> | | | <form> | | |<head> <hn> | | |
<html> |

| | <iframe> | | |<img> <input type="button"> | | |<inputtype="checkbox"> <input type="file"> | | |<input type="hidden"> <input type="image"> | | |<input type="password"> <input type="radio"> | | |<input type="reset"> <inputtype="submit"> | | |<input type="text"> | | |<isindex> | | |<label> <legend> |

| |
  • <link> | | |<listing> <map> | | |<marquee> <menu> | | |namespace <nobr> | | |<noframes> <noscript> | | |<object>
      | | |<option>

      | | |

                                                            |
      |                |                                                    |
      |                |                                                     |
      |                |<script>                        <select>                      |
      |                |                                                 |
      |                |                                              |
      |                |<style>                                                  |
      |                |                                                  |
      |                |<tbody>                                                   |
      |                |                                                       |
      |                |
        | | |<xml> <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "onReadyStateChange" Properties

        <source lang="javascript"> +----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |ctrlLeft shiftLeft | | |srcElement type | +----------------+--------------------------------------------------------------+

        </source>



        "onReadyStateChange" Syntax and Note

        <source lang="javascript"> Note:

        This event fires when the state of an object changes.

        </source>

      |

      | |<textarea> <tfoot> |

      | |
      <thead> | | |<title>