# Floating menus to behave like a normal window + few other observations

**URL:** <https://community.folivora.ai/t/floating-menus-to-behave-like-a-normal-window-few-other-observations/42765>\
**Category:** Bugs or Unexpected Behavior\
**Tags:** floating-menu\
**Created:** [March 11, 2025, 10:27am UTC](https://community.folivora.ai/t/floating-menus-to-behave-like-a-normal-window-few-other-observations/42765 "2025-03-11T10:27:19Z")\
**Posts on this page:** 1\
**Showing post:** 33

<div class="post-metadata">

**Author:** ![Andreas\_Hegenberg](https://community.folivora.ai/user_avatar/community.folivora.ai/andreas_hegenberg/32/39221_2.png) [@Andreas\_Hegenberg](https://community.folivora.ai/u/Andreas_Hegenberg)\
**Post date:** [June 16, 2025, 8:49am UTC](https://community.folivora.ai/t/floating-menus-to-behave-like-a-normal-window-few-other-observations/42765/33 "2025-06-16T08:49:18Z")

</div>

I made some changes, however I think I had never implemented window.close(), maybe this worked previously by accident. I think I can add support for it, or you could instead call the hide floating menu action:

```auto
let menu = { BTTMenuActionMenuID: "TheNameOfTheMenuYouWantToClose" };
let result = await trigger_action({
    json: JSON.stringify({
        BTTPredefinedActionType: 387,
        BTTAdditionalActionData: JSON.stringify(menu)
    }), wait_for_reply: true
});

```

//edit: I have implemented window.close() for floating menus in 5.481 (uploading)

//edit2: v5.482 should prevent conflicts if also standard floating webviews are being used

---

_[View the full topic](https://community.folivora.ai/t/floating-menus-to-behave-like-a-normal-window-few-other-observations/42765)._
