Search the Whole World Here.,.,

HTML Links - The target Attribute


The target attribute specifies where to open the linked document.

The target attribute can have one of the following values:
  • _blank - Opens the linked document in a new window or tab
  • _self - Opens the linked document in the same window/tab as it was clicked (this is default)
  • _parent - Opens the linked document in the parent frame
  • _top - Opens the linked document in the full body of the window
  • framename - Opens the linked document in a named frame
This example will open the linked document in a new browser window/tab:

Example

<a href="http://yaarnotech.blogspot.com/" target="_blank">Visit Yaar No Technology</a>
Try it Yourself »

Tip: If your webpage is locked in a frame, you can use target="_top" to break out of 

the frame:

Example

<a href="http://www.facebook.com/yaarnotech/" target="_top">Facebook Page</a>
Try it Yourself »


EmoticonEmoticon