« ExecuteGlobal 语句display:inline 与 float:x »

Onreadystatechange 事件

 作   用

 这个事件会在readyState 属性内容改变时被触发。

 基本语法

 
 此一事件有如下三种处理方式:
. Inline:<element onreadystatechange = handler>;
. Event property:object.onreadystatechange = handler;
. Named script:<SCRIPT FOR = object EVENT = onreadystatechange>;
 

说   明

 onreadystatechange 事件在readyState 属性内容改变时就会被触发,但这个事件并未说明「准备好」的状态是什么。必须使用readyState 属性来取得现在的状态。

范   例

xmlDoc.onreadystatechange =
alert("The readyState property is" + xmlDoc.readyState);

原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。