Aspects


vs


Home Page
About Us
Feedback

Onload

'onload' is a JavaScript event that is run when a document is loaded

Onreadystatechange

An XMLHttpRequest event handler



Others

Example

It looks like the onload function is a more modern convenience method and the old way of checking the result is using onreadystatechange instead

from question  

XmlHttpRequest.onload not called

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0