onreadystatechange

readystatechange イベント (DOM)

[23] readystatechange 事象は、 readyState 属性が変化した時に発火される事象です。 onreadystatechange は、 readystatechange 事象のための事象取扱器 (event handler) (事象取扱器内容属性事象取扱器IDL属性) です。

仕様書

イベントハンドラー

[27] onreadystatechange 内容属性はすべての HTML要素で利用可能です。

[28] onreadystatechange IDL属性は次のオブジェクトで利用可能です。

イベントの適用対象

[1] Webブラウザーによって発火される readystatechange イベントは、 readyState IDL属性があるオブジェクトで、 その値の変化を示すために使われます。

x
オブジェクト
readyState
readyState IDL属性
constprop
定数プロパティー
onidl
onreadystatechange IDL属性
oncontent
onreadystatechange 内容属性
event
readystatechange イベント
x
HTMLElement
onidl
oncontent
x
HTMLMediaElement
onidl
oncontent
readyState
数値定数
constprop
event
x
HTMLTrackElement
onidl
oncontent
constprop
readyState
数値定数
x
Document
readyState
文字列定数
onidl
event
x
Window
onidl
x
XMLHttpRequest
onidl
readyState
数値定数
event
constprop
x
EventSource
readyState
数値定数
constprop
x
WebSocket
readyState
数値定数
constprop
x
MediaController
readyState
数値定数
x
MediaSource
readyState
列挙型 ReadyState

歴史

[42] Web Applications 1.0 r6550 Revert r6543 and instead move onreadystatechange to be only on Document. ( ( 版)) <http://html5.org/tools/web-apps-tracker?from=6549&to=6550>

[2] Fire readystatechange more often than readyState changes (annevk著, ) <https://github.com/whatwg/xhr/commit/8efe6aad48b2824dbd7cb79836946f94d674ad4d>

[4] Editorial: add missing <hr> (annevk著, ) <https://github.com/whatwg/html/commit/9252cf88906063db8a829a177f79e1482cef804f>