The onreadystatechange property stores the function that will process the response from a server. The following code defines an empty function and sets the onreadystatechange property at the same time:
The readyState property holds the status of the server's response. Each time the readyState changes, the onreadystatechange function will be executed.
re are the possible values for the readyState property:
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.