JavaScript Reference/Event Handlers Reference/onReadyStateChange
Содержание
"onReadyStateChange" Example
<html>
<head>
<script language="JavaScript">
document.onreadystatechange=function1;
function function1 () {
if (document.readyState=="complete") {
alert("The document ready state is "complete"")
}
}
</script>
</head>
<body>
<p>Body content</p>
</body>
</html>
"onReadyStateChange" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<a> <acronym> |
| |<address> <applet> |
| |<area> <b> |
| |<base> <basefont> |
| |<bdo> <bgsound> |
| |<big> <blockquote> |
| |<body> <br> |
| |<button> <caption> |
| |<center> <cite> |
| |<code> <col> |
| |<colgroup> <comment> |
| |<custom> <dd> |
| |<del> <dfn> |
| |<dir> <div> |
| |<dl> document |
| |<dt> <em> |
| |<embed> <fieldset> |
| |<font> <form> |
| |<head> <hn> |
| |<hr> <html> |
| |<i> <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"> <ins> |
| |<isindex> <kbd> |
| |<label> <legend> |
| |<li> <link> |
| |<listing> <map> |
| |<marquee> <menu> |
| |namespace <nobr> |
| |<noframes> <noscript> |
| |<object> <ol> |
| |<option> <p> |
| |<pre> <q> |
| |<rt> <ruby> |
| |<s> <samp> |
| |<script> <select> |
| |<small> <span> |
| |<strike> <strong> |
| |<style> <sub> |
| |<sup> <table> |
| |<tbody> <td> |
| |<textarea> <tfoot> |
| |<th> <thead> |
| |<title> <tr> |
| |<tt> <u> |
| |<ul> <var> |
| |<xml> <xmp> |
+----------------+--------------------------------------------------------------+
"onReadyStateChange" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |ctrlLeft shiftLeft |
| |srcElement type |
+----------------+--------------------------------------------------------------+
"onReadyStateChange" Syntax and Note
Note:
This event fires when the state of an object changes.