Open link on multiple frames

We could start a discussion about whether developing pages with frames is the most correct or not. What is certain is that they were an alternative that facilitated the creation of composite pages before IFRAME, with includes solutions on servers,… etc. And in that situation we are presented with the need to open a link on several frames.

The idea is that we have a page that is made up of several frames and when we click on one of the links that is within a frame we want all the frames to disappear and the link that we have clicked appears on the entire screen.

To this day there are still designs that are based on frames. One of the issues to resolve in this type of design is the frame on which you want to open a link. To resolve this, within the specification HTML we have the attribute target of the anchor A element.

The values ​​that this attribute can receive are various:
_blank
,
_self
,
frame name
,… and
_top
. In the event that we want to open a link on the entire frame system, that is, on the parent page, we must use the value
_top
. The link remains as follows:

<a href="http://www.google.com" target="_top">Open on frames</a>

In this case it will be the Google which takes control of our framework and in this way we would have managed to open links on several frames and make them all disappear.