[pmwiki-users] Modify attachlist links?
Petko Yotov
5ko at 5ko.fr
Sat Oct 12 18:19:16 CDT 2013
StefCT writes:
> > Actually, such a variable exists for Attach: links but is not used in
> > the (:attachlist:) links, it is $IMapLinkFmt['Attach:']. In the next
> > version it will be enabled.
>
> Is it possible to make a hyperlink open in a new tab? AFAIK there is
> only the tag target="_blank" which opens links in a new window OR a new
> tab, depending on the user's browser settings.
No, there is no way to be absolutely sure that a new tab or window will be
opened (or not) in all browsers. And this is a good thing: I wouldn't want a
website to force me to open a new tab, even worse, new window, if I didn't
ask for it -- and I know how to click on my right or middle mouse buttons if
I want this.
An expert in web usability wrote that opening new browser windows is one of
the worst web design mistakes (#9):
http://www.useit.com/articles/top-10-mistakes-web-design/
When the standard XHTML-Strict was official and some webmasters tried to
comply to it, they noticed that the attribute target="_blank" was invalid in
that standard. So, they found ways to use JavaScript in order to open some
links in new windows:
https://www.google.com/search?q=target+_blank+strict+javascript
I don't think you can request opening of new tabs OR windows though.
Petko
More information about the pmwiki-users
mailing list