# How to make a "back" button using ui\_button

**URL:** <https://discourse.nodered.org/t/how-to-make-a-back-button-using-ui-button/41119>\
**Category:** Dashboard\
**Created:** [16 February 2021 19:57 UTC](https://discourse.nodered.org/t/how-to-make-a-back-button-using-ui-button/41119 "2021-02-16T19:57:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Post date:** [16 February 2021 19:57 UTC](https://discourse.nodered.org/t/how-to-make-a-back-button-using-ui-button/41119/1 "2021-02-16T19:57:30Z")

</div>

Hello,  
I'm trying to make "back" button like browser using dashboard button.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/3/e39d52c772e03a71942b66493363b4a6fc6c192b.png)

I need only the function, not the style.  
Maybe someone has an example?

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [16 February 2021 20:28 UTC](https://discourse.nodered.org/t/how-to-make-a-back-button-using-ui-button/41119/2 "2021-02-16T20:28:33Z")

</div>

If you mean for navigating between dashboard tabs the just a button sending -1 to the `ui_control` node will do the trick

```auto
[{"id":"8890a6bf.925018","type":"ui_ui_control","z":"ea1d3f40.afc6e","name":"","events":"all","x":220,"y":1460,"wires":[[]]},{"id":"5105a58b.bd1bdc","type":"ui_button","z":"ea1d3f40.afc6e","name":"","group":"f91b9a43.f760e8","order":0,"width":0,"height":0,"passthru":false,"label":"to home","tooltip":"","color":"","bgcolor":"","icon":"","payload":"-1","payloadType":"str","topic":"topic","topicType":"msg","x":80,"y":1460,"wires":[["8890a6bf.925018"]]},{"id":"f91b9a43.f760e8","type":"ui_group","name":"Default","tab":"9a079017.798be","order":1,"disp":true,"width":"6","collapse":false},{"id":"9a079017.798be","type":"ui_tab","name":"Away","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 March 2021 20:29 UTC](https://discourse.nodered.org/t/how-to-make-a-back-button-using-ui-button/41119/3 "2021-03-02T20:29:26Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
