# Actions

### <mark style="color:purple;">Create Window</mark>

By default, your app will launch with 1 window open (the initial window), and the settings for this window are set in the Deskifier dashboard.\
\
When creating a new window, you can set the initial window properties. \
\
**Note: The constructor options can only be set at creation time - these properties can't be updated later.** The other window attributes can be changed on the fly as needed by your experience.\
\
![](/files/jcRQKVIMCdGnV2Xi4iEx)

{% hint style="info" %}
Read our style guide for tips on setting your initial constructor options.
{% endhint %}

***

### <mark style="color:purple;">Update Window Properties</mark>

Set the state your window should be in. **Note**: Fields are optional. Only properties that are provided will be updated; omitted properties will remain unchanged.

***

### <mark style="color:purple;">Destroy</mark>

Force closes a window, even if the closable property is set to "no".

***

### <mark style="color:purple;">Execute JavaScript</mark>

Runs JavaScript in the designated window. This can be used to trigger events from your Bubble app in external pages & vice versa. \
\
To send a message back to your window from your external window, call this function.

```javascript
await window.deskifier.invoke('sendWindowMessage', { message, toWindowId })
```

This will fire the "Window - Message Received" event in your target window.

***

### <mark style="color:purple;">Send Window Message</mark>

Sends an arbitrary message to the target window. Useful for communicating between windows.

***

### <mark style="color:purple;">Show</mark>

Shows a hidden/minimized window.

***

### <mark style="color:purple;">Minimize</mark>

Minimizes the window.

***

### <mark style="color:purple;">Maximize</mark>

Maximizes the window.

***

### <mark style="color:purple;">Open Dev Tools</mark>

Shows the chromium dev tools for the given window.

***

### <mark style="color:purple;">Center Window</mark>

Centers the window in the middle of the screen.

***

### <mark style="color:purple;">Hide Window</mark>

Hides the window. Note this is not the same as minimizing a window. This will put the window into a hidden state that will need to be shown again with the "Window - Show" action.

***

### <mark style="color:purple;">Unmaximize</mark>

Unmaximizes a window.

***

### <mark style="color:purple;">Focus</mark>

Focuses the window. This will also bring the window to the top of the stack.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deskifier.gitbook.io/deskifier/deskifier-bubble.io-docs/windows-element/actions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
