Updating One Window from AnotherIf you deal with forms and data entered by your users, you'll want to know how to send information entered in one window to another window for display. You might use this in a situation where you are selling a product to replicate the user's information in a summary window. In this example, we'll use two windows: the main window is the parent window, which will receive and display information entered in a child window. Script 6.6 and Script 6.7 show the parent and child HTML pages, respectively. Script 6.8 shows the script, which is called from both the parent and child windows. Script 6.6. The HTML for the parent window.
Script 6.7. The HTML for the child window.
Script 6.8. This script is called from both the parent and child windows.
To update one window from another:
Figure 6.8. The updated parent window after calling information from the child window.
Tips
|