0

I'm using <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> (xhtml strict doctype) for a site I'm designing and when I validated it, I found that you cannot have target="" included else it's not valid.

It then went on to say that I should use CSS to do this.

I want to make one link open in a new window (have the same effect as target="_blank" ) using CSS.

Can anybody help?

Regards,
Martin

3
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by martinkorner
0

I'm using <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> (xhtml strict doctype) for a site I'm designing and when I validated it, I found that you cannot have target="" included else it's not valid.

It then went on to say that I should use CSS to do this.

I want to make one link open in a new window (have the same effect as target="_blank" ) using CSS.

Can anybody help?

Regards,
Martin

In the place of target, put...onclick="target='newwindow'".
Then it will pass strict validation.
Sincerely,
Dynamictc
dynamictc@cableone.net

0

In the place of target, put...onclick="target='newwindow'".
Then it will pass strict validation.
Sincerely,
Dynamictc
dynamictc@cableone.net

Thanks Dynamictc,

I tried that and it works great.

Thanks again,
Martin

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.