It is possible to open a link in a new browser ( popup ) ? I've tried to add this code but didnt work:
Code:
$tabselected = '';
$tablinks = '';
function trackPopup(href, target)
{
target = target || "_blank";
window.open(href, target,'width=300,height=500,resizable=0,scrollbars=no,menubar=no,status=no');
pageTracker._link(href);
}
if (PP_SCRIPT == 'PP_Classifieds' )
{
$vbulletin->options['selectednavtab']='pp_market';
$tabselected = ' class="selected"';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="/page.html" target="popupWindow" onclick="trackPopup(this.href, this.target); return false;" onmousedown="top.status='Insert Message';" onmouseover="top.status='Insert Message';">Chat</a>'.$tablinks.'</li>' ;
I've also tried to put the javascript function in separate .js file and link it in header with <script> without success