What does this HTML tag mean?

johnsemlak

First Post
target="_blank"

I see this in hyperlinks people post sometimes. As far as I can tell, it has no effect. What is it?

EDIT; sorry, didn't realize I had titled this thread "That does this HTML tag mean?"
 
Last edited:

log in or register to remove this ad


Sagan Darkside said:
I believe it happens when someone pastes an http directly into a message instead of using the button and giving it a display text.

SD

No :)

It tells the browser to open the link in a new window, rather than load it into the page you found the link on.
 

When you make a site with frames, you can give the frames names. The code would look something like this:
<frameset cols="20%,*">
<frame name="menu" src="menu.html" />
<frame name="dynamic" src="main.html" />
</frameset>

If you then wanted a link in the menu frame to open a document in the dynamic portion, you would use a link that looks something like this: <a href="document.html" target="dynamic">link text</a>

There are four pre-defined frame names:
_blank that opens the link in a new, unnamed window.
_self opens the link in the frame where the link is.
_parent opens the link in the frameset one step up from where the link is.
_top opens the link in the full window where the link is, cancelling all other frames.
 


Remove ads

Top