News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

menu button to target blank?

Started by Zirc, September 13, 2010, 04:52:26 PM

Previous topic - Next topic

Zirc

Okay I'm having a mental block here, I've got a menu subbutton that I want to target a new page/tab how would I go about doing that?

Here's what I have

'sub_buttons' => array(
'darthhater' => array(
'title' => $txt['hater'],
'href' => 'http://www.darthhater.com',
'show' => true,
'is_last' => true,
),
),


Zirc

NVM figured it out lol
needed to add the target in there


'darthhater' => array(
'title' => $txt['hater'],
'href' => 'http://www.darthhater.com',
'show' => true,
'is_last' => true,
'target' => '_blank',
),



Advertisement: