3 <title>Submit handler TemplateURL scraping test
</title>
6 function submit_handler() {
7 document
.getElementById("data").value
= "test_data";
10 function submit_form() {
11 document
.forms
[0].submit();
17 <body onload=
"submit_form();">
18 <form action=
"http://www.foo.com:1337" onsubmit=
"submit_handler();">
19 <input type=
"hidden" id=
"data" />
20 <input type=
"text" name=
"q" />
21 <input type=
"submit" />