How to open a link in a new window in HTML?

 Posted by Pgayath on 9/21/2012 | Category: HTML 5 Interview questions | Views: 2430 | Points: 40
Answer:

If you set the target attribute to "_blank" in the <a> tag, the link will open in a new browser window/tab.

Example:
<html>

<body>

<a href="http://www.dotnetfunda.com" target="_blank">Visit DotnetFunda.com!</a>

</body>
</html>


| Alert Moderator 

Comments or Responses

Login to post response