JavaScrip Advanced App: Operation Modal and Non-Modular Dialog

xiaoxiao2021-03-06  34

JavaScrip Advanced App: Operation Modal and Non-Modular Dialog

2004-04-06 9:50:44

We know that the dialog is generally divided into two types: modal type (Modal) and non-modular type (Modeless). The so-called modal dialog is that the user's mouse focus or input cursor will always stay on the dialog box unless taken a valid shutdown method. Non-modular dialogs do not force this feature, and users can switch between the current dialogs and other windows. This article describes how to create these two types of dialogs using the JavaScript language to control their size and location, change their appearance, and data delivery between dialog boxes. In all routines in this article, two HTML pages are involved from the level. We call the first page called the Caller page, the second page called the Callee page. That is, the Caller page execute code creates a Callee page. I. Creating Modal and Non-Modular dialogs First, we will give an example to quickly understand what is modal and non-modular. In caller.htm, we enter the following code: