Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET HyperLink Target Property

ASP.NET HyperLink Target Property


HyperLink Control HyperLink control


Definition and Usage

The Target property is used to set or return the target of the HyperLink control.

Syntax

/>

 

property Description
target Where to open the target URL.
  • _blank - Open the target URL in a new window
  • _self - Open the target URL in the same frame that was clicked
  • _parent - Open the target URL in the parent frame set
  • _top - Open the target URL in the full window body
  • |

    Example

    The following example sets the Target property on a HyperLink control:

    NavigateUrl="http://www.runoob.com" Target="_blank" />

    Demo Example »


    HyperLink Control HyperLink control