Opening Web Page Dialog Boxes with Other Dialog Boxes
It is possible for one dialog box to open another dialog box. In this way, you can have a chain of boxes where the box that opens is the Parent box, and the one opened is the Child box. The main window is the first parent. In this article, the third one in a five-part series, you will learn how to do this and more.
Opening Web Page Dialog Boxes with Other Dialog Boxes (Page 1 of 4 )
Dialog Box Opening Another Dialog Box
In the following code, you have a main window which opens a dialog box; the opened dialog box has a button that, when clicked, would open another dialog box.
<button type="button" onclick="openWindow()">Click to Open Dialog Box</button>
Note the extra escaping and the plus signs of the string for the second dialog box. This is because we are dealing with a string of strings. The string is not meant for the dialog box to be opened; it is meant for the dialog box (second) that will be opened by the opened (first) dialog box.
This approach of creating dialog boxes using strings of strings can be tedious. I will show you an easier way, later in the series.