I would like to display the equivalent to a modal dialog in several parts of PHP code, such that when something happens I display the dialog to ask something like "Do you want to do this?" with a Yes/No button. Best of all, that the person cannot click outside the dialog to close it, without answering the question. How do I best do that? If you have a simple example (code), all the better!