How to submit HTML form to the current page?

Spread the love

Sometimes, we want to submit HTML form to the current page.

In this article, we’ll look at how to submit HTML form to the current page.

How to submit HTML form to the current page?

To submit HTML form to the current page, we leave the action attribute blank.

For instance, we write

<form action="">...</form>

to set the action attribute to an empty string to leave it blank.

Conclusion

To submit HTML form to the current page, we leave the action attribute blank.

Leave a Reply

Your email address will not be published. Required fields are marked *