Posted by Jonathan N. Little on 03/05/07 22:53
one.1more@gmail.com wrote:
> I have a 15 page website.
> Every single page is linked to a external style sheet style.css. Now,
> when ever i click i link in my website, it opens in the same window. i
> want the hyperlinks to open in a new window. i know how to do it for a
> single link (using target _blank) but i don't want to do it 100
> times.
> is there something i can do in the external style sheet? like adding
> a:something { }
>
Let's put aside all the reasons why your links should not open in new
windows ans say CSS is for controlling the presentation not the
mechanics or the behavior of a web document (The only exception it can
think of where the technical distinction is blurred is with the
pseudo-classes :hover, :focus and :active) If you want to change
behavior universally like that, aside of hard-coding the attribute I
would say JavaScript would be the way...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|