Unlike the IFRAME based form submission, the following code makes a standard form submit request and thus your browser location will change and the current page will get added to the browser history. A Beginner’s Guide to JavaScript Auto Submit HTML Form – JavaScript Tutorial. When the user presses the submit button of the form, the browser will first show a warning box that the user's email address will be revealed to the recipient. Give an id attribute in the form tag. See the code in action! Instead of the default gray submit button, you may like to use an image. When I clicked on the link … The submit event fires when the user clicks a submit button (