Advertisement:

Author Topic: Making button pop up in a new window  (Read 2190 times)

Offline CraigT

  • Newbie
  • *
  • Posts: 2
Making button pop up in a new window
« on: September 21, 2009, 05:13:03 PM »
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?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,673
    • StoryBB/StoryBB on GitHub
Re: Making button pop up in a new window
« Reply #1 on: September 21, 2009, 05:16:21 PM »
Where it says <a href, make that <a target="_blank" href instead.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.