Previous Message
Next Message

[ot] Re: [css-d] target="_blank" alternatives for XHTML strict

Sent by Mark Gallagher on 2 January 2003 15:03


Dave,

>Well, Are there alternatives for target="_blank" without using Javascript?

No, there isn't.  This is generally known as a "Good Thing".  If you aren't 
using frames, it's up to the *user* to decide where he/she wants to place 
your link's target - either in the original window, or a new one.

>How about using javascript but still using regular <a href> elements so if
>JS is disabled, links still function sans pop-up?

Easy.  In fact, I don't understand why this isn't used for *all* JavaScript 
"enhanced" (<cough />) links.  It's simple:

  <a href="http://www.bar.net/" onclick="foo">baz</a>

Just replace the "foo" with your irritating JavaScript.

Before I go, I should point out that this is off-topic for CSS-D.  If you 
have any further questions, ask me (or someone else that responds) off-list, 
or, better yet, redirect your question to a list which is designed for such 
questions, such as webdesign-l <http://www.webdesign-l.org/> or thelist 
<http://www.evolt.org/>


HTH

--
Mark Gallagher
http://cyberfuddle.com/infinitebabble/



_________________________________________________________________
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup
Previous Message
Next Message