The consoleLib.activeWindow system variable holds the window variable representing the top window, or the window most recently activated. consoleLib.activeWindow is the default target for window operations when you do not specify a window name.
Type: Window