![]() |
VOOZH | about |
The HTML formTarget Attribute is used to specify the name or a keyword, that indicates where to display a result after submitting the form. It specify that the submitted result will be open in current window, a new tab or a new frame. This attribute overrides the feature of target attribute of <form> element.
Uses: It is used in <button> and <input type="submit"> and <input type="image">
Syntax:
<element formtarget="_blank|_self|_parent|_top|framename">
Attribute Values:
Example: This example illustrates a form that contains two submit buttons, one will submit in a current frame and another button submit in a new frame.
Output
👁 ImageSupported Browsers: The list of browsers supported by HTML formtarget Attribute are given below -