Preventing HTML Window from Closing

108 views
Skip to first unread message

Rheago

unread,
Mar 11, 2021, 4:17:45 AM3/11/21
to Google Apps Script Community
Hello there,

I created the window in the picture with "HTML" in Google Tables. How do I make sure this window doesn't close. When I click the cross in the red circle it closes. Is there any way to prevent this?
thread-101675559-15569505715161739205.png

dimud...@gmail.com

unread,
Mar 11, 2021, 7:56:38 AM3/11/21
to Google Apps Script Community
There is no way to hide, remove or disable the close button for a window or modal generated using HtmlService. Any HTML/CSS/Javascript content you generate is sandboxed within a series of nested iframes so your sandboxed code cannot affect the close button in any way. Google does this to ensure that their workspace apps function consistently and securely.

Rheago

unread,
Mar 11, 2021, 8:08:38 AM3/11/21
to Google Apps Script Community
Okay. Thank you.

11 Mart 2021 Perşembe tarihinde saat 15:56:38 UTC+3 itibarıyla dimud...@gmail.com şunları yazdı:
Reply all
Reply to author
Forward
0 new messages