- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
link target
August 25, 2015
A link target attribute use as a layout mechanism is no longer common. But if you do want to maintain a frameset-based web site, you may need to open links in frames or windows other than the one in which the source of the link resides.
The ‘target’ controls where the new page will be displayed when the user follows a link. Clicking on a link mostly loads a new page in the same window where the link was. You need to add a target if you want the link to open in another window or frame than the link itself is placed in.
A link target has four predefined values:
-
“_blank” loads the page into a new browser window.
For example, this link target will open the Google in a new window: Google.
<a href="http://www.google.com" target="_blank">Google</a>
“_self” loads the page into the current window.
“_parent” loads the page into the frame that is parent to the frame the hyperlink is in.
“_top” loads in the full body of the window.