Page 1 of 1
Opening external links in new window
Posted: Tue Dec 30, 2008 3:35 pm
by BenD
Is there any possibility to open links that do not point to my own website in a new window? So the script should add target="_blank" to any external link it finds.
Is there a solution, yet? I am too lazy to add this by hand to any external link

.
Posted: Tue Dec 30, 2008 4:10 pm
by Don Chambers
Posted: Tue Dec 30, 2008 4:52 pm
by BenD
Mh, but this requires adding rel="external" by hand to each external link... My dream of a solution would be a javascript/plugin that crawls the content for external links, adding target="blank" to each one that doesn't have it already.
Sounds like a nice idea for a plugin...
Posted: Thu Jan 15, 2009 7:42 pm
by judebert
Didn't we once do something like this to add little icons on the ends of links? I seem to recall making the oddest regexps to support it. Don, was that you I was working with?
Re: Opening external links in new window
Posted: Thu Jan 15, 2009 8:15 pm
by yellowled
BenD wrote:Is there any possibility to open links that do not point to my own website in a new window?
I still can't fathom why people would want to do that. Especially given that fact that you can always override these, at least with a good browser. I can understand why people would want to
mark external links, but why ... seriously, I have no idea. Oh, never mind.
YL
Posted: Thu Jan 15, 2009 9:04 pm
by Don Chambers
judebert wrote:Didn't we once do something like this to add little icons on the ends of links? I seem to recall making the oddest regexps to support it. Don, was that you I was working with?
Wasn't me.
Re: Opening external links in new window
Posted: Fri Jan 16, 2009 1:53 am
by ameo
yellowled wrote:BenD wrote:Is there any possibility to open links that do not point to my own website in a new window?
I still can't fathom why people would want to do that. Especially given that fact that you can always override these, at least with a good browser. I can understand why people would want to
mark external links, but why ... seriously, I have no idea. Oh, never mind.
YL
"THIS IS MY TAB, DON'T USE THE DAMN TAB FOR ANOTHER WEBSITE .. LEAVE THE FU*KING TAB OPENED!!!!!!! " Sorry about that

, but that is the only logic reason for opening links in new tab.
Don Chambers wrote:judebert wrote:Didn't we once do something like this to add little icons on the ends of links? I seem to recall making the oddest regexps to support it. Don, was that you I was working with?
Wasn't me.
i still want to know if such feature exists in s9y or not [ out of curiosity ]
Re: Opening external links in new window
Posted: Fri Jan 16, 2009 3:08 am
by Don Chambers