Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <button> formaction Attribute

  • Last Updated : 31 May, 2019

The HTML <button> formaction Attribute is used to specify where to send the data of the form. After submission of form the formaction attribute called. The form data is to be sent to the server after submission of form. It overrides the feature of the action attribute of an <form> element.


<button type="submit" formaction="URL"> 

Attribute Values: It contains single value URL which is used to specify the URL of the document where the data to be sent after submission of the form.

The possible value of URL are:

  • absolute URL: It points to the full address of a page. For example:
  • relative URL: It is used to point to a file within in a webpage. For Example: gfg.php


<!DOCTYPE html>
        HTML <Button> formAction Attribute
<body style="text-align:center;">
        HTML  <button> formAction Attribute 
    <form action="#" method="get" target="_self">
        <input type="submit"
               value="Submit @ geeksforgeeks" 


Supported Browsers: The browsers supported by HTML button formaction Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!