1. Standard method
2. It should be noted that Firefox does not support this feature. The syntax it supports is
window.open
('openwin.html','newWin', 'modal=yes, width=200,height=200,resizable=no, scrollbars=no' );
3. How to automatically determine the browser
[Note] In Google Chrome, the effect of this modal will also be invalid.
5. Generally when a dialog box pops up, we all want the background of the entire parent page to change to a semi-transparent color, so that users can see that the back is inaccessible
And after closing the dialog box, I want to restore it
How is this done?
// $("body")
$("body").addClass("body1");
ShowDetailsDialog(url, "600px", "400px", "yes");
$("body"). -color:#999999;
filter:Alpha(Opacity=40);}