Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <input> formtarget Attribute

  • Last Updated : 15 Dec, 2021

The HTML <input> formtarget attribute is used to specify the name or a keyword which indicates where to display the response after submitting the form. This attribute overrides the target attribute of <form> element.


<input formtarget="_blank|_self|_parent|_top|framename">

Attribute Values:

  • _blank: The input response is display in a new window.
  • _self: The input response is display in the same frame. it is the default value.
  • _parent: The input response is display in the parent frameset.
  • _top: The input response is display in the full body of the window.
  • framename: The input response is display in the named frame.


<!DOCTYPE html> 
        HTML input formtarget Attribute
        <h1 style="color:green;"
            HTML <input> formtarget Attribute
        <form action="#"
            <input type="text" name="usrname"
            <input type="text" name="password"
            <input type="submit" value="Submit" formtarget="_blank"


Supported Browsers: The browsers supported by HTML <input> formtarget attribute are listed below:

  • Google Chrome 9.0
  • Internet Explorer 10.0
  • Firefox 4.0
  • Safari 5.1
  • Opera 10.6

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!