> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/js/all/electron/dialog.md).

# Dialog

Show blocking native messages

```javascript
const indexOfClickedButton = dialog.showMessageBoxSync({
  type: "warning",
  message: "Welcome to the future",
  title: "Permissions Error"
});
console.log("Printed after the message is accepted")
```
