Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does _top in the hyperlink target do?

Tags:

html

I sometimes see target="_top" in an anchor tag. What does it do?

<a href="http://foobar.com" target="_top">Foobar</a> 
like image 986
user2219520 Avatar asked Apr 26 '13 07:04

user2219520


People also ask

What is the target attribute used for in the hyperlink tag?

The HTML <link> target Attribute is used to specify the window or a frame where the linked document is loaded.

What is the difference between _parent and _TOP?

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.

What is target _blank in a href?

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.

What does target _self mean in HTML?

_self. Opens the linked document in the same frame as it was clicked (this is default)


1 Answers

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

like image 56
Chưa biết Avatar answered Sep 28 '22 19:09

Chưa biết