Instance 011 Popup Full-screen display of the page Mode dialog box Instance descriptiona full-screen Web page modal dialog box pops up, and the user cannot browse other content of the site before closing. Technical EssentialsThis example mainly applies the width, Height property of the screen object and the ShowModalDialog () method of the Window object. In fact, there is another way to open the Web Page dialog box, the showModelessDialog () method. the difference between using the ShowModalDialog () and the showModelessDialog () method is that the ShowModalDialog () Open Web Page dialog box is a modal window that is placed on the parent window and must be closed to access the parent window The dialog box opened by the showModelessDialog () method is a modeless window that does not close and can access the parent window or other windows. implementation Process(1) main window to realize the function index.html
(2) Pop-up window new.htmlNote: The content of the style tag is the knowledge of CSS, and we focus on the content within the script tag. So this example of ours is done.
JavaScript effect instance 011-Popup Full Screen page modal dialog box