# Uibuilder and Update msg When focus on Browser Tab

**URL:** <https://discourse.nodered.org/t/uibuilder-and-update-msg-when-focus-on-browser-tab/45401>\
**Category:** General\
**Created:** [9 May 2021 21:13 UTC](https://discourse.nodered.org/t/uibuilder-and-update-msg-when-focus-on-browser-tab/45401 "2021-05-09T21:13:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buckskin](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Buckskin](https://discourse.nodered.org/u/Buckskin)\
**Post date:** [9 May 2021 21:13 UTC](https://discourse.nodered.org/t/uibuilder-and-update-msg-when-focus-on-browser-tab/45401/1 "2021-05-09T21:13:46Z")

</div>

This may be a daft question but is there an easy way to get uibuilder to send a msg to NR when the browser tab gets focus? (to ensure that the page has the latest data)

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [9 May 2021 21:40 UTC](https://discourse.nodered.org/t/uibuilder-and-update-msg-when-focus-on-browser-tab/45401/2 "2021-05-09T21:40:45Z")

</div>

Yes 😀 - Drat, discourse won't let me post just that 🤣

At least there is as long as you can work out how to detect when a tab gets focus. I'm sure there is a way though I can't remember it off the top of my head. Check out the bootstrap-vue docs.

Assuming that creates an event, you can use that event to do a `uibuilder.send(...)`

---

<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:** [8 July 2021 21:41 UTC](https://discourse.nodered.org/t/uibuilder-and-update-msg-when-focus-on-browser-tab/45401/3 "2021-07-08T21:41:30Z")

</div>

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