A must-know for anyone heading into a web design interview, this question is frequently asked in web design Interview Questions. The following script can help you submit a form in JavaScript after furnishing all the elements like the anchor tag and one click.  Script:  document.forms[0].submit() [The value ‘0’ defines the index of the JavaScript form.]