Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-09-22 09:13:44
- lennert
- New Member
- Registered: 2006-09-22
- Posts: 2
redirection to target _blank
Have a question about redirection. On one of my pages I want to open a link in a new page using target=”_blank”. Is there a way in textile to do that? Here’s the code I would like to generate:
<code>
<a href=“http://www.website.com/link” target=”_blank”>http://www.website.com/link</a>
</code>
Have been looking but couldn’t find this anywhere.
Lennert
Last edited by lennert (2006-09-22 09:15:43)
Offline
Re: redirection to target _blank
Target blank is not xhtml 1.0 strict so textile does not support it.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#3 2006-09-22 13:01:27
- lennert
- New Member
- Registered: 2006-09-22
- Posts: 2
Re: redirection to target _blank
I understand.
“The Web standards are written with a lot of ideals in mind. In many cases, established practices go by the wayside in favour of “the right thing to do”. One of the ideals that is expressed by the removal of the target attribute from the Strict standards is that (X)HTML should only be concerned with the information that’s displayed within a browser window.”
http://www.sitepoint.com/article/standards-compliant-world
“Consequently, as soon as we start talking about opening new browser windows, the idealistic notion is that we have exceeded the responsibilities of (X)HTML and entered the world of client-side scripting (i.e. JavaScript).”
I understand indeed but part of me has a hard time believing. The reason I’m using Textile is the idea of beauty and simplicity but if I have to use Javascript because of lack of functionality Im less inclined of using it.
P.S. Thanks for the quick response and explanation.
P.P.S. Interesting is that while the article was written in 2003 all browsers today still support the target attribute.
Offline
Re: redirection to target _blank
Maybe this could be interesting for you.
Offline
#5 2006-09-23 00:51:23
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: redirection to target _blank
And this. You can use the PR Block plugin to automatically add target and other attributes to links.
Alex
Offline
#6 2006-09-23 05:07:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: redirection to target _blank
Textile is intended to be a “shorthand” if you will, for hand-entered (X)HTML, not a replacement. If you really want the target attribute, use (X)HTML:
<a href="http://www.website.com/link" target="_blank">http://www.website.com/link</a>
That should work just fine, right alongside the Textile otherwise being used.
Interesting is that while the article was written in 2003 all browsers today still support the target attribute.
- Most people are still using the same browsers released years before 2003 (IE 5/5.5/6).
- Note colak’s statment: “Target blank is not xhtml 1.0 strict”. It’s being phased out of the spec entirely.
Offline
#7 2006-09-23 18:29:35
- NyteOwl
- Member

- From: Nova Scotia, Canada
- Registered: 2005-09-24
- Posts: 539
Re: redirection to target _blank
I entered this yesterday, not sure why it didn;t save.
P.P.S. Interesting is that while the article was written in 2003 all browsers today still support the target attribute.
It’s still supported because target is a valid attribute in frameset DTDs.
Obsolescence is just a lack of imagination. / 36-bits Forever! / #include <disclaimer.h>;
Offline
Pages: 1