servo/tests/html/form_submission_handsfree.html
2014-10-11 16:00:16 +05:30

16 lines
460 B
HTML

<html>
<head></head>
<body>
<!-- Run with nc -l 8000 -->
<form action="http://localhost:8000" method=get id="foo">
<input name=bar type=checkbox checked>
<input name=baz value="baz1" type=radio checked>
<input name=baz value="baz2" type=radio>
<input type=text name=bye value="hi!">
</form>
<script>
// setTimeout because https://github.com/servo/servo/issues/3628
setTimeout(function(){document.getElementById("foo").submit()},5000)
</script>
</body>
</html>