5 function state_changed(xhr
) {
6 if (xhr
.readyState
== 4)
7 window
.top
.location
.href
= "done.html";
11 var xhr
= new XMLHttpRequest();
12 xhr
.onreadystatechange = function() { state_changed(xhr
); };
13 xhr
.open("GET", "password_xhr_submit.html", true);
20 <form action=
"password_xhr_submit.html" onsubmit=
"send_xhr(); return false;"
22 <input type=
"text" id=
"username_field" name=
"username_field">
23 <input type=
"password" id=
"password_field" name=
"password_field">
24 <input type=
"submit" id=
"submit_button" name=
"submit_button">
27 <form action=
"password_xhr_submit.html" id=
"signup_testform">
28 <input type=
"text" id=
"signup_username_field" name=
"signup_username_field">
29 <input type=
"password" id=
"signup_password_field"
30 name=
"signup_password_field" autocomplete=
"new-password">
31 <input type=
"password" id=
"confirmation_password_field"
32 name=
"confirmation_password_field" autocomplete=
"new-password">
33 <input type=
"submit" id=
"signup_submit_button" name=
"signup_submit_button">