Return to Snippet

Revision: 284
at July 8, 2006 13:30 by 1man


Initial Code
<a href="http://address.com/" title="Title Here" onclick="window.open(this.href,'newwin'); return false;">Insert Link Title</a>

Initial URL

                                

Initial Description
Very simple standard compliant way of opening a page in a new window. Since XHTML 1.0 Strict doesn't allow the target attribute in the  tag. This method isn't recommended, use the DOM folks! See "Standard Compliant Way to Open a New Page Function" in my other snippets of code.

Initial Title
Standard Compliant Way to Open a New Page (no target tag)

Initial Tags
xhtml

Initial Language
HTML