5 function state_changed(xhr
) {
6 if (xhr
.readyState
== 4) {
7 window
.top
.location
.href
= "done.html";
12 var xhr
= new XMLHttpRequest();
13 xhr
.onreadystatechange = function() { state_changed(xhr
); };
14 xhr
.open("GET", "password_xhr_submit.html", true);
21 <input type=
"text" id=
"username_field">
22 <input type=
"password" id=
"password_field">