• 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: JavaScript 1.1 and later include 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 the latest browsers. Can I use them with JavaScript?
A2: Yes. You'll learn how to use layers with JavaScript in Hour 19, “Using Dynamic HTML (DHTML).”
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 11.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