A document becomes active when the window displaying that document becomes the active window. This happens when the document is created or opened, when the user activates the window containing the document, and when the document is activated via a script (see Document.Activate). The document is de-activated when it is closed or when the user or a script makes another document active.
Two special macros correspond to these events:
Copyright © SoftQuad Software Inc. 1999