From: Reini U. <ru...@x-...> - 2004-08-10 18:42:24
|
hen...@es... schrieb: > is there a posibility to open a new browser when an external link is > visited in Phpwiki? I know i can use html links and append > "target=_blank" as a workaround but it would be more elegant if the > wiki itself would detect an external link and react the way I want. I'm > using Phpwiki-1.3.7. Add $link->setAttr('target','_new'); to the end of lib/stdlib.php:LinkURL() - #286 Or do it with a body onload javascript handler, which sets all <a> links of the class "namedurl" to attribute target=_new. This can be done in your theme. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |