<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sat, Aug 19, 2017 at 8:52 AM, Manuel Reimer <span dir="ltr"><<a href="mailto:manuel.reimer@gmx.de" target="_blank">manuel.reimer@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
currently I'm using "window.confirm". This works "OK" but doesn't look that nice and I would like to have a checkbox in the message box to allow the user to choose that his choice should be remembered.<br>
<br>
Is there a nice, simple way to do this?<br>
<br>
I need my code to block as long as it takes for the user to make a choice, so *please* no asynchronous stuff like promises.<br></blockquote><div><br></div>You're swimming upstream with that last comment -- modal dialogs are problematic for a number of reasons. If you insist on something synchronous, I think the answer is no, there isn't a better option than window.confirm.</div><div class="gmail_quote"><br></div><div class="gmail_quote">-Andrew</div><div class="gmail_quote"><br></div></div></div>