Operation Modal and Non-Modular Dialog

zhaozj2021-02-16  71

JavaScrip Advanced App: Operation Modal and Non-Modular Dialog

JavaScrip advanced applications: operation mode and non-modal dialog This article comes from: http: //www.computerworld.com.cn Author: Gan Jiping (2002-01-29 20:41:38) We know that, generally divided into the dialog Two types: Modal and Non-modular Types (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: