Targets: _blank, _parent, _self, _top
Solved
truitas
Posted messages
45
Status
Member
-
Melnofil Posted messages 3 Status Member -
Melnofil Posted messages 3 Status Member -
Hello,
could you tell me what actions are generated by the targets: _blank, _parent, _self, _top
thank you for your help
could you tell me what actions are generated by the targets: _blank, _parent, _self, _top
thank you for your help
Configuration: Windows XP Firefox 2.0.0.16
8 answers
-
Here is a precise response;
_blank: opens a web link in a new blank window
_parent: opens the link in the "parent" frame of the frame where the link is located
_self: opens the link in the current frame/window
_top: opens the link in "top", meaning that if the link is in a frame, it exits that frame... useful to prevent your site from being used in a frame by another one
--
GameTwo ! :)-
The difference between _top and _parent is subtle (they can be the same thing):
_top targets the entire window you are currently in.
This allows you to escape from all , and tags, but without changing the browser window.
If your page was opened in a popup window, it will remain trapped in the popup.
_parent targets the page that opened your page.
If you are in a , or , this corresponds to the page that wrote that tag, which itself may also be in a frame.
If you are at the highest level of a popup, this corresponds to the page that opened the popup.
If you are at the highest level of a new tab, this corresponds to the previous tab.
etc.
To simultaneously escape from frames and a popup, the most effective method is to use _blank if someone else has trapped you, or a previously named page with window.name if you have trapped yourself!
If you target a _top or _parent page that no longer exists, your page will be replaced by default (as with _self).
-
-
If everyone says "look on Google," and no one provides the answer on Google, then we will only get responses like "look on Google"
because Google can't provide the answer if no one is there to say it. So, folks, if you know something, do like "uiui" who gives the answer and stop messing things up. At worst, don't respond, and those who know will provide the answers. -
Is it assistance?
You should take less than 10 seconds to find it on Google...
--
Google is your friend...-
Yes, it should take 10 seconds to find it on Google... except that every time someone asks an interesting question, everyone tells them "look it up on Google," and so we find "look it up on Google" in the Google results... it's a bit ugly anyway...
To avoid answering unnecessarily:
_blank: opens a web link in a new blank window
_parent: opens the link in the "parent" frame of the frame where the link is located
_self: opens the link in the current frame/window
_top: opens the link in "top," meaning that if the link is in a frame, it exits... useful to prevent your site from being used in a frame by another one. -
-
-
-
-
-
The so-called experts who apparently feel proud to constantly post: "look it up on Google" in all the forums are people who know nothing and like everyone else are just searching on Google for the answer!!! If that weren't the case, then what are they doing in the forums?!!
Moreover, if they were a little smarter, they would think that if today or tomorrow a question pops into their heads and they find an answer on Google, it's because wherever they found the answer, the author took the time to respond to those questions and not just: "look it up on Google"!!! That really annoys me U.U -
As of today, "framesets" are no longer used in HTML.
Only _blank is used (new tab/window). The others are almost obsolete.
_blank: opens the link in a new window or a new tab
_self: opens the link in the same frame (frame=frame) where it is positioned (default behavior)
_parent: opens the link in the parent frame (that is, the frame containing the frame where the link is)
_top: opens the link in full page, in the same window or tab
FrameName: You can also directly specify the name of the target frame in the target attribute
Source: https://www.w3schools.com/tags/att_a_target.asp
---
When a messy client goes through several service providers to complete different parts of their site, we're glad to have the <object/>, <frame/> or <iframe/> to avoid stepping on each other's toes.
And let's not even get into the social media codes that can crash websites...
So no, it's not obsolete, it's just discouraged!
-
-
Thank you for this response, and +1 for the fact that when we look on Google, we often say "look it up on Google" lol
@+++
Ju' -
_Blank opens a new window, I believe, the others I don't know.
--
::GameTwo:: Proud to help you! ;D -
The funniest thing is that when you search on Google, you find this link among the top results... without a precise answer. Too bad, I’ll move on to the next ones!