X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP.NET Target Property


HyperLink Control Reference Complete HyperLink Control Reference

Definition and Usage

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

Syntax

<asp:HyperLink Target="target" runat="server" />
 
Attribute Description
target Where to open the target URL.
  • _blank - the target URL will open in a new window
  • _self - the target URL will open in the same frame as it was clicked
  • _parent - the target URL will open in the parent frameset
  • _top - the target URL will open in the full body of the window


Example

The following example sets the Target on a HyperLink control:

<form runat="server">
<asp:HyperLink id="link1" runat="server" Text="W3Schools"
NavigateUrl="http://www.w3schools.com" Target="_blank" />
</form>

Show example »

HyperLink Control Reference Complete HyperLink Control Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook