Re: Target, or opening a new instance of UA with a link

> IMO, JS is by far the worst of all options. Not only is JS
> onmouseclick="window.open()" even more presentational than a
> target=_blank, it also has major security problems and is much harder to
> separate from other code.

Here's the way I found to overcome the problem with target. I used the
modular nature of XHTML 1.1 to create my own DTD that simply references the
official XHTML 1.1 DTD, and adds the Target module that is part of XHTML
1.1. This avoids the problems associated with using JavaScript, and still
lets the document validate while retaining all the other benefits of XHTML
strict.

I understand why some people hate multiple windows poping up, but there are
cases where I think it improves the user experience. Take a look at
zeldman.com, for example. If I'm reading his blog and come across a link
that I want to visit, i *like* the fact that his links open in a separate
window, allowing me to explore those sites in detail, and then easily return
to his blog when I'm ready.

<!DOCTYPE html PUBLIC "+//IDN PetesGuide//DTD XHTML 1.1 plus Target//EN"
                      "http://www.PetesGuide.com/DTDs/XHTML11target.dtd">

Received on Monday, 25 February 2002 17:27:30 UTC