# Open the login popup Or trigger event when button is pressed

**URL:** <https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385>\
**Category:** Development\
**Created:** [December 18, 2019, 8:29am UTC](https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385 "2019-12-18T08:29:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Bcat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bcat/32/163148_2.png) [@Bcat](https://meta.discourse.org/u/Bcat)\
**Post date:** [December 18, 2019, 8:29am UTC](https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385/1 "2019-12-18T08:29:50Z")

</div>

There is a simple way like: button has class: `sign-up-button`

When clicked will open the registered Popup. Instead of using `a: href is a signup`

* * *

I used `api.decorateWidget ('post: after', helper`

But there is **NAME:LOCATION** is unique to insert a code snippet at the end of the article.

Or place to find the NAME: LOCATION

---

_[View the full topic](https://meta.discourse.org/t/open-the-login-popup-or-trigger-event-when-button-is-pressed/136385)._
