Comment 6 for bug 68040

Revision history for this message
In , Jpatadia (jpatadia) wrote :

I just tried the code in Mozilla 1.2.1.

Two Problems :

a) I still see the menubar when the window opens (with minimize/maximize/close
buttons). What I want is a dialog with just one item in the menubar (The "X")
for closing the dialog. Open the following link :

http://javascript.about.com/library/weekly/aa091001a.htm

Click on the "Try It" button in IE. You'll know what I'm talking about. (This
page does not use the showModalDialog, but some other logic - especially to see
the grey background, but the showModalDialog function would have simplified the
code a lot.)

b) The window which opens in the attachment, is not modal (at least not in
mozilla on linux). I can still interact with my main window without closing the
other one. So it's not really a modal dialog.

That's why the showModalDialog is such an attractive option - you can customize
what the user sees, since it takes a valid url as a parameter.