blob: 2e0b04ff5b1c2202cf7c1d2254210c5b68b2121d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<html>
<head>
<title>Submit handler TemplateURL scraping test</title>
<script>
function submit_handler() {
document.getElementById("data").value = "test_data";
}
function submit_form() {
document.forms[0].submit();
}
</script>
</head>
<body onload="submit_form();">
<form action="http://www.foo.com:1337" onsubmit="submit_handler();">
<input type="hidden" id="data" />
<input type="text" name="q" />
<input type="submit" />
</form>
</body>
</html>
|