quick css question

liunx

Guest
Is there a way I can use an external style sheet to get every link in a document to open in a new page (target="_blank") ? Im using an imported sheet in a number of pages and I am hoping I can just indicate in the sheet that all links open a new browser window, instead of having to go through each of the documents that use the sheet and add target="_blank" to each link.<br />
<br />
Thanks for any help<!--content-->no, it is not controlled by the css. it is html or javascript<!--content-->Putting this in the header will make every link from a document open in a new window:<br />
<base target="_blank"><!--content-->...and then, if you wanna override THAT, use target="self" (say for instance that you want to open a link in the SAME page, but all the rest in a new page).<br />
<br />
one suggestion: give the page a name (i use target="extra"), so that all the links open in a separate window, but the same one each time. that's, IMHO, far less annoying.<!--content-->Originally posted by Arctic Dragon <br />
Putting this in the header will make every link from a document open in a new window:<br />
<base target="_blank"> <br />
base is deprectaed and shouldn't be used.<!--content-->I thought it was only the target attribute that was deprecated.<br />
According to <!-- m --><a class="postlink" href="http://www.w3schools.com/tags/tag_base.asp">http://www.w3schools.com/tags/tag_base.asp</a><!-- m --> , Base is still legal.<!--content-->sorry it was basefont I was thinking of. I could have sworn it was base or I read it somewhere.<!--content-->great tips guys, thanks again<!--content-->
 
Back
Top