| <html> | |
| <head> | |
| <script> | |
| function state_changed(xhr) { | |
| if (xhr.readyState == 4) { | |
| window.top.location.href = "done.html"; | |
| } | |
| } | |
| function send_xhr() { | |
| var xhr = new XMLHttpRequest(); | |
| xhr.onreadystatechange = function() { state_changed(xhr); }; | |
| xhr.open("GET", "password_xhr_submit.html", true); | |
| xhr.send(null); | |
| } | |
| </script> | |
| </head> | |
| <body> | |
| <input type="text" id="username_field"> | |
| <input type="password" id="password_field"> | |
| </body> | |
| </html> |