Easy Tutorial
❮ Met Video Addtexttrack Prop Audio Controller ❯

Form target Attribute


Definition and Usage

The target attribute is used to set or return the value of the target attribute of a form.

The target attribute specifies where to open the action-URL of the form.

Syntax

The target attribute can have the following values:

Value Description
_blank Opens in a new window
_self Loads the target document in the same frame or window
_parent Loads the document into the parent window or the frame that contains the hyperlink
_top Loads the document into the window that contains the hyperlink, replacing any currently displayed frames
framename Opens the window in the same named frame

Browser Support

All major browsers support the target attribute.


Example

Example

Return the action URL to be opened:

The output of the above script:


❮ Met Video Addtexttrack Prop Audio Controller ❯