# \`window.alert\` in a UXP plugin crashes InDesign

**URL:** <https://forums.creativeclouddeveloper.com/t/window-alert-in-a-uxp-plugin-crashes-indesign/6647>\
**Category:** InDesign\
**Tags:** plugin, bug, uxp\
**Created:** [August 8, 2023, 1:26pm UTC](https://forums.creativeclouddeveloper.com/t/window-alert-in-a-uxp-plugin-crashes-indesign/6647 "2023-08-08T13:26:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![pklaschka](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/pklaschka/32/3162_2.png) [@pklaschka](https://forums.creativeclouddeveloper.com/u/pklaschka)\
**Post date:** [August 8, 2023, 4:43pm UTC](https://forums.creativeclouddeveloper.com/t/window-alert-in-a-uxp-plugin-crashes-indesign/6647/3 "2023-08-08T16:43:39Z")

</div>

Fair enough (thank you for looking into this!), but in that case, I would suggest that it shouldn’t crash InDesign but immediately abort with an error message in the console instead. I remember that it was mentioned during office hours at some point that this is an essential piece of functionality, especially for existing InDesign devs (who might try to use it and, with the intermittent behavior, maybe not notice that it doesn’t work consistently)…

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/window-alert-in-a-uxp-plugin-crashes-indesign/6647)._
