I use alert boxes to warn the user about errors when submitting a form on a website I am working on, but each time I click the "ok" button to close the alert box, the page go back to the top and I need to scroll down again to see the form.
I checked other website but this does not happen despite the code is pretty much the same. What is wrong?