Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
css: open all links in new window
Old 07-23-2007, 12:55 AM css: open all links in new window
Average Talker

Posts: 18
Name: Jason
Location: Texas
Trades: 0
hi, is there a css tag that will allow me to make all the links on a page open in a new tab or window?

Thanks, Jason
jjz8706 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-23-2007, 03:11 PM Re: css: open all links in new window
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
No, and why would you want to do that ?
CSS doesn't open windows, CSS just STYLES things. If you want links opening in new windows, use javascript.

Even then I'd say don't do it, it confuses users, they may be blocked entirely by pop-up blockers and lastly, it's just plain annoying.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-23-2007, 06:15 PM Re: css: open all links in new window
Average Talker

Posts: 18
Name: Jason
Location: Texas
Trades: 0
o yea, makes sense. I just want to use it for links that exit my site, so when they are on my site they will always be able to navigate, but when they click an external link, it will not affect my site
jjz8706 is offline
Reply With Quote
View Public Profile
 
Old 07-23-2007, 06:35 PM Re: css: open all links in new window
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Breaking the "back" button by opening new windows is a very old and outdated idea.

User are far more savvy about using browsers now and trying to keep them "on your site" simply doesn't really work any more.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-23-2007, 09:59 PM Re: css: open all links in new window
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Right, it doesn't. People know how to use their "back" button and they use it liberally, so don't try to take that away from them.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-24-2007, 02:27 AM Re: css: open all links in new window
vangogh's Avatar
Post Impressionist

Latest Blog Post:
Why Responsive Design?
Posts: 10,815
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Chris and Diane I agree with you and my reasoning is that if you leave the links to open in the same window I can still open them in a new window if I choose. But if you force the new window then I can't open the link in the new window.

However I've been learning recently that a lot of people actually prefer the new window. I'm still with both of you on this and I don't think forcing a new window does anything to keep people on your site. They're still on another site, only in a different window, but I was surprised at how many people seem to like the new window thing. Hard to believe I know.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to css: open all links in new window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.65868 seconds with 12 queries