SyntaxFix
Write A Post
Hire A Developer
Questions
You need to prevent the default behaviour. You can either use e.preventDefault() or return false; In this case, the best thing is, you can use return false; here:
e.preventDefault()
return false;
<form onsubmit="completeAndRedirect(); return false;">