Difference between _self, _top, and _parent in the anchor tag target attribute

前端 未结 5 1568
北荒
北荒 2020-12-13 05:20

I know _blank opens a new tab when used with the anchor tag and also, there are self-defined targets I use when using framesets but I will like to know the diff

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 06:09

    target="_blank"

    Opens a new window and show the related data.

    target="_self"

    Opens the window in the same frame, it means existing window itself.

    target="_top"

    Opens the linked document in the full body of the window.

    target="_parent"

    Opens data in the size of parent window.

提交回复
热议问题