Javascript-target= "_blank" and target= "blank" originally there is a difference Ah!

Source: Internet
Author: User
target="_blank"Open link in new tab

Always thought target="blank" is the wrong way of writing, did not expect this to have effect AH:

When the label has been opened, click the second time will not open the new label, but to refresh the previous label Ah, how so magical, supernatural ah!

To check it out, the target standard attribute does not have blank this value ah, really strange.

I hope the great God is pointing out

PS: There seems to be HTML5 a similar function now, like NetEase music, click on the link will not refresh the page, will not interrupt the current playing music, can change URL , do not know this effect is God horse principle

Reply content:

target="_blank"Open link in new tab

Always thought target="blank" is the wrong way of writing, did not expect this to have effect AH:

When the label has been opened, click the second time will not open the new label, but to refresh the previous label Ah, how so magical, supernatural ah!

To check it out, the target standard attribute does not have blank this value ah, really strange.

I hope the great God is pointing out

PS: There seems to be HTML5 a similar function now, like NetEase music, click on the link will not refresh the page, will not interrupt the current playing music, can change URL , do not know this effect is God horse principle

_blank is to open a new page
Blank is to open a page, and named Blank, when there is a blank page, then the new page (here to other non-_blank,_top, etc.) is also possible

targetproperty setting non _blank , _top these predefined values are the name of the window that specifies the open link, and if it does not exist, the new window opens in that window if it already exists.

For modern browsers, "window" refers to "tabs".

YQB's answer is correct.
Target has a predefined value of four. The other value represents FrameName, which opens the link in the specified frame, and creates a new page/tab as the frame if the specified frame does not exist.

  • 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.