OLD | NEW |
---|---|
(Empty) | |
1 <html> | |
2 <head> | |
3 <script> | |
4 function run() | |
5 { | |
6 if (window.location.toString().endsWith("?name=Abbf")) { | |
7 document.getElementById("name").value = ""; | |
8 document.getElementById("name").focus(); | |
9 console.log("ready"); | |
10 return; | |
11 } | |
12 document.getElementById("submit").click(); | |
13 } | |
14 </script> | |
15 </head> | |
16 <body onload="run()"> | |
17 <form action="?" onsubmit="this.action += window.location.hash"> | |
18 <input type="text" id="name" name="name" value="Abbf" /> | |
19 <input type="submit" id="submit" value="submit" /> | |
20 </form> | |
21 </body> | |
22 </html> | |
OLD | NEW |