I sometimes see target="_top"
in an anchor tag. What does it do?
<a href="http://foobar.com" target="_top">Foobar</a>
The HTML <link> target Attribute is used to specify the window or a frame where the linked document is loaded.
The value _parent refers to the frameset that is the parent of the current frame, whereas _top “breaks out of all frames” and opens the linked document in the entire browser window.
target="_blank" is a special keyword that will open links in a new tab every time. target="blank" will open the first-clicked link in a new tab, but any future links that share target="blank" will open in that same newly-opened tab.
_self. Opens the linked document in the same frame as it was clicked (this is default)
target=:
_top
: Opens the linked document in the full body of the window
_blank
: Opens the linked document in a new window or tab
_self
: Opens the linked document in the same frame as it was clicked (this is default)
_parent
: Opens the linked document in the parent frame
framename
: Opens the linked document in a named frame
http://www.w3schools.com/tags/att_a_target.asp
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With