Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
all
alt
ch
dir
id
min
rel
top
url
URL
urn
Expand Minimize

formTarget property

Overrides the target attribute on a form element.

This property is read/write.

HTML5 A vocabulary and associated APIs for HTML and XHTML, Section 4.10.19.6Internet Explorer 10

 

Syntax

JavaScript
object.formTarget = sTarget
sTarget = object.formTarget

 

Property values

Type: DOMString

String containing one of the following values:

  • _blank - Submit form to a new window or tab.
  • _self - Submit form to the same frame or active window (default).
  • _parent - Submit form to a the immediate parent frame.
  • _top - Submit form to the topmost window.
  • name - Submit the form to a named frame.

Standards information

See also

HTMLButtonElement
HTMLInputElement
input type=image

 

 

Show:
© 2015 Microsoft