But if the dialog is a modal one, then it blocks the page, right?
I've tried it in Chrome and IE, and it's the same.
If I'm using this code in a single .jsp page (in a frame), then the alert is shown as custom dialog with the specified styles. But if i'm using it in a frameset, it is shown the default one.
I've tried with window.barf, but I've got the same result. :-(