Site icon Learn Web Development & Programming, Artificial Intelligence, WordPress, Shopify Articles

Explain how to submit a Form without a submit button?

A form can be posted or submitted without the button in the following ways:

1. On OnClick event of a label in the form, a JavaScript function can be called to submit the form.
Example:

  document.form_name.submit()

2. Using a Hyperlink: On clicking the link, JavaScript function can be called.

Example:

<a href="javascript:document.MyForm.submit();">

A form can be submitted in these other ways without using submit button.

Exit mobile version