Replacement for target=" ... "

J

Juerg Beck

Hello all
I'm using Google maps with overlays that require the page to be
written in XHTML strict to work in IE. Overlays on Google map work
well in FF with XHTML transitional.
I have some more links on this page that I would like to be openend in
another tab or window. But XHTML strict does not allow the use of the
target attribute.
Is there any replacement for this attribute that may be used with
XHTML strict ? Or is it not possible to direct the link into another
tab with HTML or XHTML strict ? I can't believe it !
That's why I guess that any of you experts know a way of solving that
problem.
Thanks in advance for any hint
BR
Juerg
 
G

G

Juerg said:
Hello all
I'm using Google maps with overlays that require the page to be
written in XHTML strict to work in IE. Overlays on Google map work
well in FF with XHTML transitional.
I have some more links on this page that I would like to be openend in
another tab or window. But XHTML strict does not allow the use of the
target attribute.
Is there any replacement for this attribute that may be used with
XHTML strict ? Or is it not possible to direct the link into another
tab with HTML or XHTML strict ? I can't believe it !
That's why I guess that any of you experts know a way of solving that
problem.
Thanks in advance for any hint
BR
Juerg

use XHTML 1.0 transitional
no version of html strict has included it either
 
M

Michael Fesser

..oO(Juerg Beck)
I have some more links on this page that I would like to be openend in
another tab or window.
Why?

But XHTML strict does not allow the use of the
target attribute.

Correct, it's a deprecated attribute.
Is there any replacement for this attribute that may be used with
XHTML strict ? Or is it not possible to direct the link into another
tab with HTML or XHTML strict ? I can't believe it !

You don't have much control over how your site will be rendered on the
client side. You don't even know if it will be displayed in something
that could be called a window at all, HTML simply doesn't care about
such things. So why bother? Let the user decide and that's it.

Of course you could use Transitional or a JavaScript to open the window,
but that would be a step back.

Micha
 
N

Neredbojias

Well bust mah britches and call me cheeky, on Tue, 07 Aug 2007 20:51:08 GMT
Juerg Beck scribed:
Hello all
I'm using Google maps with overlays that require the page to be
written in XHTML strict to work in IE. Overlays on Google map work
well in FF with XHTML transitional.
I have some more links on this page that I would like to be openend in
another tab or window. But XHTML strict does not allow the use of the
target attribute.
Is there any replacement for this attribute that may be used with
XHTML strict ? Or is it not possible to direct the link into another
tab with HTML or XHTML strict ? I can't believe it !

Well, believe it. It's a, uh, step forward. (-Really, a yuppie mentality
thang.)
 
F

freemont

I have some more links on this page that I would like to be openend in
another tab or window. But XHTML strict does not allow the use of the
target attribute.
Is there any replacement for this attribute that may be used with
XHTML strict ?

Javascript method:

<a onclick="window.open(this.href,'_blank');return false;"
href="http://www.example.com">Link</a>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top