onreadystatechange

Fires when the state of the object has changed.

Parameters

ev

The event

MDN Reference