---
title: "How can we submit a form without a submit button?"  
description: "How can we submit a form without a submit button?"  
author: "Anonymous User"  
published: 2011-03-18  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/480/how-can-we-submit-a-form-without-a-submit-button  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# How can we submit a form without a submit button?

If you don't want to use the Submit button to submit a form, you can use normal hyper links to submit a form. But you need to use some JavaScript code in the URL of the link. **For example:** \
\

```
<a href="javascript: document.myformsample.submit();">Submit</a>
```

A form can be submitted in various ways without using submit button.\
Submitting a form by clicking a linkSubmitting a form by selecting an option from drop down box with the invocation of onChange eventUsing java script : document.form.submit();Using header(“location:page.php”);

## Answers

### Answer by Anonymous User

If you don't want to use the Submit button to submit a form, you can use normal hyper links to submit a form. But you need to use some JavaScript code in the URL of the link. **For example:** \
\

```
<a href="javascript: document.myformsample.submit();">Submit</a>
```

A form can be submitted in various ways without using submit button.\
Submitting a form by clicking a linkSubmitting a form by selecting an option from drop down box with the invocation of onChange eventUsing java script : document.form.submit();Using header(“location:page.php”);


---

Original Source: https://www.mindstick.com/interview/480/how-can-we-submit-a-form-without-a-submit-button

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
