I have a page with a form and navigation links. If you click on a navigation link I need to submit the form as well as follow the navigation request.
To do this I have a link who's href is pointing to the new page request and I have the onclick event bound to a function that submits the form on the page.
Could this scenario cause hard to reproduce problems of the form not submitting?
ex:
function submitForm(){
document.myform.submit();
}
<a href="page1.html" onclick="submitForm()">Back To page 1</a>
<form action="procsub" method="post"><input type="text" id="val1" /></form>