Find out where the response will be displayed after submitting a form:
The result of x could be:
The formTarget property sets or returns the value of the formtarget attribute of a submit button.
The formtarget attribute specifies a name or a keyword that indicates where to display the response that is received after submitting the form.
The formtarget attribute overrides the target attribute of the <form> element.
Note: The formtarget attribute is new for the <input> element with type="submit" in HTML5.
The formTarget property is supported in all major browsers.
Note: The formTarget property is not supported in Internet Explorer 9 and earlier versions.
Return the formTarget property:
Set the formTarget property:
|_blank||The response is displayed in a new window/tab|
|_self||The response is displayed in the same frame (this is default)|
|_parent||The response is displayed in the parent frame|
|_top||The response is displayed in the full body of the window|
|framename||The response is displayed in a named iframe|
|Return Value:||A String, representing where to display the response after submitting the form|
Change the value of the formtarget attribute of a submit button:
HTML reference: HTML <input> formtarget attribute