I have this on my PHP page:
<script>
window.setTimeout(function() {
document.getElementById('test_form').submit();
}, 5000);
</script>
And it's working fine.
But when I'm placing this:
<input type="submit" name="submit" id="submit">Submit</input>
the JavaScript timer is not working. When I remove this, JavaScript works all fine. What's the problem and how it will be resolved?