system.perspective.closeAllPopups
Descriptionβ
Closes all open popups on the page with the given pageId, or on all pages in the Session with the given sessionId if no pageId is provided. If neither a pageId nor a sessionId is provided, all open popups on every page in the current Session are closed.
Syntaxβ
system.perspective.closeAllPopups([sessionId], [pageId])
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | sessionId | Identifier of the Session to target. If omitted, the current Session will be used automatically. [Optional] |
| String | pageId | Identifier of the page to target. If omitted, the current page will be used automatically. [Optional] |
Returnsβ
Nothing
Scopeβ
Gateway, Perspective Session
Code Examplesβ
Code Snippet
# Closes all open popup pages.
system.perspective.closeAllPopups()