javascript onreadystatechange Description

Fires if the readyState property changes for an element. See the shared readyState property in Chapter 9 for details on what affects the property.