Subs.php button: open in a new tab

Started by magarto, July 29, 2009, 04:19:28 PM

Previous topic - Next topic

magarto

Hi,

I would like to know how to change the next button to force to open in a new tab:

'chat' => array(
    'title' => $txt['fc_chat'],
    'href' => $scripturl . '?action=chat',
    'show' => !$user_info['is_guest'],
         'sub_buttons' => array(
    ),
),


I have checked here but i cannot find the solution.

Thanks in advance.

H

Try:

             'href' => $scripturl . '?action=chat" target="_blank',

Depending on your theme this still may not work as XHTML does not allow links to open in new windows without javascript
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

magarto


H

Glad that sorted it for you. Marked as solved :)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Advertisement: