# Basic problem about closing window

**URL:** <https://forum.bubble.io/t/basic-problem-about-closing-window/20546>\
**Category:** Need help\
**Created:** [November 17, 2017, 11:38am UTC](https://forum.bubble.io/t/basic-problem-about-closing-window/20546 "2017-11-17T11:38:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ertdmn](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@ertdmn](https://forum.bubble.io/u/ertdmn)\
**Post date:** [November 17, 2017, 11:38am UTC](https://forum.bubble.io/t/basic-problem-about-closing-window/20546/1 "2017-11-17T11:38:11Z")

</div>

Hello i need help about closing window with button

Maybe it is a basic topic but i just want to learn

I created a Cancel button

Then what action should i enter after when cancel button is clicked

---

<div class="post-metadata">

**Author:** ![mguerrasio](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mguerrasio](https://forum.bubble.io/u/mguerrasio)\
**Post date:** [November 17, 2017, 12:24pm UTC](https://forum.bubble.io/t/basic-problem-about-closing-window/20546/2 "2017-11-17T12:24:38Z")

</div>

Are you talking about closing a popup window or the browser window? If you mean a Bubble popup, you create a workflow that calls the Element Hide action. If you mean a browser window, you need to use JavaScript and the window.close() method.

---

<div class="post-metadata">

**Author:** ![ertdmn](https://avatars.discourse-cdn.com/v4/letter/e/a88e57/32.png) [@ertdmn](https://forum.bubble.io/u/ertdmn)\
**Post date:** [November 22, 2017, 10:44am UTC](https://forum.bubble.io/t/basic-problem-about-closing-window/20546/3 "2017-11-22T10:44:05Z")

</div>

thanks for reply but i couldt solve it because wth the action elemets hides action works for just elements and i couldn find where can i edit javascript

thanks again

---

<div class="post-metadata">

**Author:** ![mguerrasio](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mguerrasio](https://forum.bubble.io/u/mguerrasio)\
**Post date:** [November 22, 2017, 12:30pm UTC](https://forum.bubble.io/t/basic-problem-about-closing-window/20546/4 "2017-11-22T12:30:54Z")

</div>

Can you share the page you are working on? I am not sure what you are trying to accomplish, so seeing what you are doing would help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [January 26, 2018, 11:38am UTC](https://forum.bubble.io/t/basic-problem-about-closing-window/20546/5 "2018-01-26T11:38:15Z")

</div>

Closed on January 26, 2018, 11:38am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
