2

Can someone give me working example of parent and top in html. I cannot find any example to know about this. Everywhere theoretical answers are available.

_top: opens in the outermost frame

_parent: opens in the parent frame

But i am not able to see any example.

Mosh Feu
  • 28,354
  • 16
  • 88
  • 135
user1770589
  • 375
  • 1
  • 6
  • 19

1 Answers1

0

<a href="http://stackoverflow.com" target="_parent">Open in parent</a>

<a href="http://stackoverflow.com" target="_top">Open in top</a>

See a tag description on w3schools and editable example is here.

EDIT:

The difference between _top and _parent is described in the accepted answer here Difference between _self, _top, and _parent in the anchor tag target attribute:

The _parent _top and framename tags are left a mystery to those that aren't familiar with the days of iframe site building as the trend.

Community
  • 1
  • 1
mzy
  • 1,754
  • 2
  • 20
  • 36
  • where is parent in your answer? – user1770589 Mar 21 '16 at 13:21
  • 1
    In your example do you think there is some difference between top and parent??? both opens in self window. – user1770589 Mar 21 '16 at 13:23
  • See the difference between _top and _parent in the answer here: http://stackoverflow.com/questions/18470097/difference-between-self-top-and-parent-in-the-anchor-tag-target-attribute ... The `_parent` `_top` and `framename` tags are left a mystery to those that aren't familiar with the days of `iframe` site building as the trend. – mzy Mar 21 '16 at 13:46