diff options
Diffstat (limited to 'chrome/test/data/template_url_scraper/submit_handler/index.html')
| -rw-r--r-- | chrome/test/data/template_url_scraper/submit_handler/index.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chrome/test/data/template_url_scraper/submit_handler/index.html b/chrome/test/data/template_url_scraper/submit_handler/index.html new file mode 100644 index 0000000..2e0b04f --- /dev/null +++ b/chrome/test/data/template_url_scraper/submit_handler/index.html @@ -0,0 +1,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> |
