Target attribute value. jquery obtains the attribute value.

Source: Internet
Author: User

Target attribute value. jquery obtains the attribute value.

Four reserved target names are used as special document redirection operations:

_ Blank

The browser always loads the target document in a new and untitled window.

_ Self

The <a> label of this target value is the default target for all unspecified targets, so that the target document is loaded and displayed in the same framework or window as the source document. This goal is redundant and unnecessary unless used together with the target attribute in the document title <base> tag.

_ Parent

This object enables the document to be loaded into the parent window or contains the framework set of the Framework referenced by the hyperlink. If the reference is in a window or in a top-level framework, it is equivalent to the target _ self.

_ Top

This object causes the document to load the window containing this hyperlink. The _ top object will clear all contained frameworks and load the document into the entire browser window.


Another scenario is target = "iframename". iframename is the name attribute value of iframe on the page. The content will be displayed in this iframe.


Target attribute Problems

Target = "_ blank": browse a new page in a new window.
Target = "_ self": opens a new page in the same window.
Target = "_ parent": opens a new page in the parent window. (Frameworks can be used on the page)
Target = "_ top": displays the new page in the browser window. (Beyond the limitations of the page Framework)

For the target attribute in HTML

The framework is a browser page that is not composed of several parts, which is similar to the display of several browser colleagues. Each part is irrelevant.
The form is the browser window. This should be easy to understand.
Parent frame: It is higher than the frame where the hyperlink you clicked is located. If the target value is _ parent, if there is only one frame, this is equivalent to opening a new webpage on the entire browser interface. If the framework is nested, It will be opened in a framework with a higher level.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.