Re: css -- new window for hyperlinks



one.1more@xxxxxxxxx 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
.



Relevant Pages

  • Re: "This program is not responding..."
    ... > of my favorite websites, the linked window opens to an ... When I try to close this window I get an End Program popup ... > Thanks in advance, Fran ... No fix other than complain to the website ...
    (microsoft.public.windowsxp.newusers)
  • Re: css -- new window for hyperlinks
    ... Every single page is linked to a external style sheet style.css. ... when ever i click i link in my website, it opens in the same window. ...
    (alt.html)
  • Re: New IE window pops up
    ... > second instance of IE opens, with the target being a website that is related ... > new window is to Gateway. ... > some financial website, if I go to a writing website, the new website is also ... Sounds like just popups, which are windows linked to ...
    (microsoft.public.windowsxp.general)
  • css -- new window for hyperlinks
    ... I have a 15 page website. ... Every single page is linked to a external style sheet style.css. ... when ever i click i link in my website, it opens in the same window. ...
    (alt.html)
  • PP hyperlinks open both new and privious brouser windows
    ... I have a website that was created in PP and its ... I have made some content amendments to various pages since upgrading and ... the new window and opens up a new copy of the front page. ...
    (microsoft.public.powerpoint)