Aspects


vs


Onload

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

Onreadystatechange

An XMLHttpRequest event handler

Others

Quality Example
Function more

"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-3.0