This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > August 2004 > Re: How do I specify <a href="..." target="_blank">...</a&g





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: How do I specify <a href="..." target="_blank">...</a&g
Spartanicus

2004-08-03, 12:17 pm

"Tony Marston" <tony@NOSPAM.demon.co.uk> wrote:

>The code
> <a href="..." target="_blank">...</a>


Wrong group, crossposted and follow up set to
comp.infosystems.www.authoring.html

>will not validate as XHTML STRICT because of the 'target' tag


Attribute.

>, so how do I
>achieve the same result by moving it to a CSS file?


CSS is for presentation.

>I cannot find anything
>which allows me to specify 'target=' on an anchor tag.


Good, leave opening new windows/tabs to the user.

--
Spartanicus
Jamie

2004-08-03, 7:17 pm



Tony Marston wrote:

> The code
> <a href="..." target="_blank">...</a>
> will not validate as XHTML STRICT because of the 'target' tag, so how do I
> achieve the same result by moving it to a CSS file? I cannot find anything
> which allows me to specify 'target=' on an anchor tag.
>


Here's how:

http://www.sitepoint.com/article/1041

It requires Javascript, but the code seems pretty simple.

Jamie
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews