Programmer's Guide > Interfaces > ADocumentEvent interface > relatedWindow attribute
  
relatedWindow attribute
The relatedWindow attribute identifies a window related to the event. For the DocumentLoad event, relatedWindow is the window that the document loads to. For the DocumentUnload event, relatedWindow is the window that the document unloads from, as long as the window still exists. If the window is destroyed along with the document, then relatedWindow is null.
relatedWindow
Access
read-only
Returns
Window