Web page design - 129Chapter 11Scripting Frames and Multiple WindowsListing 11-2:A Main

129Chapter 11Scripting Frames and Multiple WindowsListing 11-2:A Main Window Document


Text incoming from subwindow:

All of the action in the subwindow document comes in the onchangeevent handler of the textfield. It assigns the subwindow field s own value to the value of the field in the opener win- dow s document. Remember that the contents of each window and frame belong to a docu- ment. So even after your reference targets a specific window or frame, the reference mustcontinue helping the browser find the ultimate destination, which is generally some elementof the document. Listing 11-3:A Subwindow Document

Enter text to be copied to the main window:

Just one more lesson to go before I let you explore all the details elsewhere in the book. I usethe final tutorial chapter to show you some fun things you can do with your Web pages, suchas changing images when the user rolls the mouse atop a picture.