chromium/chrome/test/data/template_url_scraper/submit_handler/index.html

<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>
<form action="" onsubmit="submit_handler();">
<input type="hidden" id="data" />
<input type="text" name="q" />
<input type="submit" />
</form>
</body>
</html>