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
target
property 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.