# Change property of Modal windows with UXP

**URL:** <https://forums.creativeclouddeveloper.com/t/change-property-of-modal-windows-with-uxp/6189>\
**Category:** Photoshop\
**Created:** [April 18, 2023, 2:05pm UTC](https://forums.creativeclouddeveloper.com/t/change-property-of-modal-windows-with-uxp/6189 "2023-04-18T14:05:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MalbertCunha](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/malbertcunha/32/2760_2.png) [@MalbertCunha](https://forums.creativeclouddeveloper.com/u/MalbertCunha)\
**Post date:** [April 18, 2023, 2:05pm UTC](https://forums.creativeclouddeveloper.com/t/change-property-of-modal-windows-with-uxp/6189/1 "2023-04-18T14:05:30Z")

</div>

Hello everybody!  
Could someone tell me if it is possible to change some properties of Modal windows " showModal({ title: “xxxx”, resize: “both”, size: { width: 400, height: 400} })" when loaded, such as yours size and especially the opacity “Opacity=0” as we already do with scriptUI - jsx. Please, is this possible, could someone show me how to do it? Thanks.

---

<div class="post-metadata">

**Author:** ![Ancelmoa](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/ancelmoa/32/3640_2.png) [@Ancelmoa](https://forums.creativeclouddeveloper.com/u/Ancelmoa)\
**Post date:** [June 28, 2023, 12:56am UTC](https://forums.creativeclouddeveloper.com/t/change-property-of-modal-windows-with-uxp/6189/2 "2023-06-28T00:56:30Z")

</div>

I don’t know if that’s exactly it, but from what I understand, I use the DOM.

testDialog.showModal();  
testDialog.style.width = ‘250px’;  
testDialog.style.height = ‘550px’;  
testDialog.style.backgroundImage = ‘url(/images/bgdial.png)’  
testDialog.style.borderRadius = ‘7px’
