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 |