• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Q&A

Q1:When a script is running in a window created by another script, how can it refer back to the original window?
A1: In Netscape 3.0 and later, JavaScript includes the window.opener property, which lets you refer to the window that opened the current window.
Q2: I've heard about layers, which are similar to frames, but more versatile, and are supported in Netscape 4.0. Can I use them with JavaScript?
A2: Yes. Like windows and frames, each layer has its own window object. You'll learn how to use layers in Hour 18, “Creating Dynamic Pages with the DOM.”
Q3: How can I update two frames at once when the user clicks on a single link?
A3: You can do this by using an event handler, as in Listing 13.6, and including two statements to load different frames. To simplify things, you can also create a function that loads both frames and then call the function from the event handler.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint