Index: class.tslib_content.php =================================================================== --- class.tslib_content.php (revision 2018) +++ class.tslib_content.php (working copy) @@ -5286,15 +5286,16 @@ if ($forceTitle) {$title=$forceTitle;} if ($JSwindowParams) { - + $target=$conf['JSWindow.']['target']?$conf['JSWindow.']['target']:'FEopenLink'; + $winObj=$conf['JSWindow.']['newWindow']?'vHWin_'.md5(rand()):'vHWin'; // Create TARGET-attribute only if the right doctype is used if (!t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2', $GLOBALS['TSFE']->xhtmlDoctype)) { - $target = ' target="FEopenLink"'; + $target = $target; } else { $target = ''; } - $onClick="vHWin=window.open('".$GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url'])."','FEopenLink','".$JSwindowParams."');vHWin.focus();return false;"; + $onClick=$winObj."=window.open('".$GLOBALS['TSFE']->baseUrlWrap($finalTagParts['url'])."',$target,'".$JSwindowParams."');".$winObj.".focus();return false;"; $res = ''; } else { if ($GLOBALS['TSFE']->spamProtectEmailAddresses === 'ascii' && $finalTagParts['TYPE'] === 'mailto') {