Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML compliant "new browser" window. 1

Status
Not open for further replies.

irbk

MIS
Oct 20, 2004
578
US
As the W3C found it fitting to deprecate the target="_blank" code
(example)
Code:
<a href="site.html" target="_blank">My site</a>
to open up a new browser window, how have you been creating a "new browser window"? I've been using some javascript
(example)
Code:
<a href="javascript:" onclick="open('[URL unfurl="true"]http://www.site.html','','')">My[/URL] site</a>
That works fine, as long as javascript isn't turned off. If it is turned off, the link goes no where.

How have you managed to accomplish it while maintaining XHTML compliance?

Thanks in advance.
 
is the iframe xhtml compliant? Just a thought.. but I find that annoying too, lol.. People who wrap websites, that is.

Olav Alexander Mjelde
Admin & Webmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top