4. In IE, the modal dialog box will hide the address bar, while in other browsers The device is not necessarily
[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
///Display the details of an order, through A modal dialog box, and the screen will change color function ShowOrderDetails(orderId) { var url = "details.aspx?orderID=" orderId; //$("body").css( "filter", "Alpha(Opacity=20)"); //filter:Alpha(Opacity=50) $("body").addClass("body1"); ShowDetailsDialog(url , "600px", "400px", "yes"); $("body").removeClass("body1"); }
6. How to transfer values between pages showModalDialog value transfer and refresh (1) Example of using showModalDialog. The parent window passes the value to the child window, the child window sets the value of the parent window, and when the child window is closed, the value is returned to the parent window. farther.html
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn