Javascript Reference
Categories: FORM

javascript FORM target

@March 15, 2008, 1:22 a.m.
targetFirefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

Read/Write  

The name of the window or frame that is to receive content returned by the server after the form is submitted. Such names are assigned to frames by the frame element's name attribute; for subwindows, the name is assigned via the second parameter of the window.open( ) method. Because the corresponding target attribute is not recognized by strict HTML or XHTML validators, you can omit the attribute to survive validation, yet still direct form results to another window by assigning a value to the form's target property in script.

 
Example
 
document.getElementById("myForm").target = "_blank";
 
Value

String value of the window or frame name, or any of the following constants (as a string): _parent | _self | _top | _blank. The _parent value targets the frameset to which the current document belongs; the _self value targets the current window; the _top value targets the main browser window, thereby eliminating all frames; and the _blank value (or any unused identifier, for that matter) creates a new window of default size.

 
Default

None (which implies the current window or frame).

I definitely liked entire lot that was written.
I'd bent to conserve reading more and more.
I will be beneficial to learn as much as I can
I surely delight in you an eye to the follow-up so gush done thank you acutely much to save the time. Successfully!
davidulcew - 2019-07-16
Under moderation.
Robpsype - 2017-04-02

Powered by Linode.