/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: formtarget

[this page | pdf | back links]

The HTML formtarget attribute indicates where to display the response that is received after submitting form. It applies to <button> and <input> elements and then only for type = submit.

 

Valid attribute values (when used with <button> and <input> elements) include:

 

Value

Description

_blank

Opens linked document in a new window or tab

_self

Opens linked document in parent frame

_parent

(default value). Opens linked document in the same window or tab as was clicked

_top

Opens linked document in full body of the window

framename

Opens linked document in named frame

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile