Skip to main content
Version: 8.3
View as Markdown

system.perspective.closeAllPopups

Description​

New in 8.3.11


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​

TypeParameterDescription
StringsessionIdIdentifier of the Session to target. If omitted, the current Session will be used automatically. [Optional]
StringpageIdIdentifier 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()