You have been referred to this item:

How do I create a custom 'OK' dialog or something similar?

This is a browser-dependent question.

Internet Explorer: showModalDialog().

Mozilla:, sName, sFeatures); //where sFeatures contains 'modal=1'.

This will give you a dialog box which you can then put custom HTML in, thereby creating your custom dialog box.