News:

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

Main Menu

Making button pop up in a new window

Started by CraigT, September 21, 2009, 05:13:03 PM

Previous topic - Next topic

CraigT

Hi

I'm usint the mibbit irc package and i have made a button using the following code

/ The [IRC] button
                                          if ($context['allow_memberlist'])
                                                                                                    echo '<li><a href="', $scripturl, '?action=chat" class="kwick opt12">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/mibbit.png" alt="' . $txt[331] .'" style="margin: 0px 0;" border="0" /><span>' : $txt[331]), '</span></a></li>';

but i want to make it open up in a new window if someone can help me do this please?

Arantor

Where it says <a href, make that <a target="_blank" href instead.

Advertisement: