xModalDialog allows you to "grey" the page and display a dialog box in the center of the window. Effectively it becomes a modal dialog box. Thanks, BlueNC!
This is not too bad for a first implementation, but it has plenty of room for improvement so it is likely that this will evolve over time.
This demo greys the page and displays a modal dialog box.
Run Demo 1
You can have multiple instances per page.
Run Demo 2
In the forum discussion Thomas is putting xModalDialog to good use and he and gebura have some great ideas for improving it. One of those ideas was a replacement for the native "window.confirm" method.
Both Demo 1 and Demo 2 test the Confirm dialog.
Last update to this page: 13 July 2007