Tuesday, March 27, 2012

Link & Open A New Window


You can use the HTML code on this page to force a link to open in a new window.

Example

<a href="http://www.quackit.com/html/html_help.cfm" target="_blank">HTML Help</a>

This results in:


As the above example demonstrates, to open a link in a new window, you simply add target="_blank" to the anchor tag. Everything else stays as a normal link.

No comments:

Post a Comment