Index: typo3/sysext/cms/tslib/class.tslib_content.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_content.php (revision 9204) +++ typo3/sysext/cms/tslib/class.tslib_content.php (working copy) @@ -8144,16 +8144,20 @@ } if ($JSwindowParams) { + + $uniqueTargetString = md5($finalTagParts['url']); + $winTarget = $conf['JSwindow.']['altTargetName'] ? $conf['JSwindow.']['altTargetName'] : 'jsWin' . $uniqueTargetString; + $winObj = $conf['JSwindow.']['altWinObjName'] ? $conf['JSwindow.']['altWinObjName'] : 'vHWin_' . $uniqueTargetString; // 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="' . $winTarget . '"'; } 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']) . + "','" . $winTarget . "','" . $JSwindowParams . "');" . $winObj . ".focus();return false;"; $res = '