Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / test / data / password / password_xhr_submit.html
blobbf337e1103b1532ff7ae955c07039bc205f1a144
1 <html>
2 <head>
3 <script>
5 function state_changed(xhr) {
6 if (xhr.readyState == 4)
7 window.top.location.href = "done.html";
10 function send_xhr() {
11 var xhr = new XMLHttpRequest();
12 xhr.onreadystatechange = function() { state_changed(xhr); };
13 xhr.open("GET", "password_xhr_submit.html", true);
14 xhr.send(null);
17 </script>
18 </head>
19 <body>
20 <form action="password_xhr_submit.html" onsubmit="send_xhr(); return false;"
21 id="testform">
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">
25 </form>
26 </body>
27 </html>