1

Topic: Opening links in another windows

Can you restore this optional feature like in version 1.1.xx ("target=_blank" tag) ?

Re: Opening links in another windows

open include/parser.php

line 275:

return '<a href="'.$full_url.'">'.$link.'</a>';

change to

return '<a href="'.$full_url.'" target="_blank">'.$link.'</a>';

line 286:

$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';

change to

$img_tag = '<a href="'.$url.'" target="_blank"><'.$lang_common['Image link'].'></a>';

Re: Opening links in another windows

Which, I believe, isn't valid markup smile

Re: Opening links in another windows

http://validator.w3.org doesn't have any problems with it

5 (edited by Smartys 2005-04-17 22:31)

Re: Opening links in another windows

Mmm, I do remember something like that being a problem, let me search

http://punbb.org/forums/viewtopic.php?id=6355

Paul wrote:

Actually it is really both reasons. The target attribute is not XHTML compliant and the reason it is not compliant is that browser behaviour is not something that is the business of markup or css; thats what javascript is for. There is another reason and that is there are accessability issues with opening links in new windows.  I think you will find that during the next couple of years opening links in new windows will become something of a rarity.

6

Re: Opening links in another windows

It isn't valid under the XHTML 1.0 Strict doctype. XHTML 1 Strict doesn't allow the target attribute in any shape or form. Actually, it isn't even valid under HTML 4.01 Strict. If you want to know whats allowed in strict compared to transitional, see here
http://liorean.web-graphics.com/xhtml/c … trict.html

If your page validates with the target attribute then its a bug in the validator, it has a few.

Re: Opening links in another windows

bug in the validator in that case, i tested it when Smarty's posted that.

8

Re: Opening links in another windows

Well, as said above, it isn't supported in XHTML Strict, but in XHTML 1.0 Framset it is.

The reason for this is to let the users have control over their own webbrowsers.

Re: Opening links in another windows

xevz wrote:

it isn't supported in XHTML Strict

ah maybe that was it, i think i tested as loose.

Re: Opening links in another windows

anyway http://punbb.org/forums/viewtopic.php?pid=34905#p34905