pub enum Target {
None,
_Blank,
_Self,
_Parent,
_Top,
_UnfencedTop,
}Variants§
None
This removes the attribute from the HTML element. This is the default, so there is no need to set this manually.
_Blank
Usually a new tab, but users can configure browsers to open a new window instead.
from MDN Webdocs - CC-BY-SA v2.5
_Self
The current browsing context.
from MDN Webdocs - CC-BY-SA v2.5
_Parent
The parent browsing context of the current one. If no parent, behaves as _self.
from MDN Webdocs - CC-BY-SA v2.5
_Top
The topmost browsing context. To be specific, this means the “highest” context that’s an ancestor of the current one. If no ancestors, behaves as _self.
from MDN Webdocs - CC-BY-SA v2.5
_UnfencedTop
Allows embedded fenced frames to navigate the top-level frame (i.e. traversing beyond the root of the fenced frame, unlike other reserved destinations). Note that the navigation will still succeed if this is used outside of a fenced frame context, but it will not act like a reserved keyword.
from MDN Webdocs - CC-BY-SA v2.5