Why doesn't my JavaScript fire, the checkprogress form button works if I manually click it, but it doesn't automatically fire, my JavaScript is meant to fire 5 seconds after page is displayed
This is the end of the html page ...
<form action="/check_progress" name="check_progress">
<p>
<input type="submit" value="Check Progress">
</p>
</form>
<form action="/pause">
<p>
<input type="submit" value="Pause">
</p>
</form>
<script>function checkprogress() { setTimeout(5000); document.getElementsByName('check_progress').submit(); } </script></body>
</html>