Questions tagged [onreadystatechange]

A function that handles XMLHttpRequest events, triggered whenever the readyState property is modified.

Having difficulty sending variables to onreadystatechange

Here is the latest version of the source code: var xhttp = new XMLHttpRequest(); function passVars(var1, var2, var3) { if (var1.readyState == 4) { if (var1.status == 200) { var data = var1.responseText; if (data) { playSuccess ...