# Button in TopBar

**URL:** <https://discourse.nodered.org/t/button-in-topbar/6377>\
**Category:** Dashboard\
**Created:** [4 January 2019 10:17 UTC](https://discourse.nodered.org/t/button-in-topbar/6377 "2019-01-04T10:17:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Tobi](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Tobi](https://discourse.nodered.org/u/Tobi)\
**Post date:** [7 January 2019 09:09 UTC](https://discourse.nodered.org/t/button-in-topbar/6377/4 "2019-01-07T09:09:05Z")

</div>

I´m able to implement a button with this code:

> ```
> > 
> > var div3 = $('<div/>');
> > var button = document.createElement("BUTTON");
> > var b = document.createTextNode("Home")
> > button.appendChild(b);
> > //button.ng-click="send({payload:'1'})";
> > div3.append(button);
> 
> ```

but the ng-click option doesn´t work

![button_inTopBar](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/4995a8f7be42ba5953a7218f88ac41303c1d033f.png)

---

_[View the full topic](https://discourse.nodered.org/t/button-in-topbar/6377)._
