The Site Window API provides information about a site visitor's browsing environment and tools to interact with the browser window.
With the Site Window API you can:
Note: The terms popup and lightbox refer to the same element. While the editor and dashboard now refer to it as a popup, the API methods continue to use the term lightbox for backward compatibility. The documentation uses both terms accordingly.
en-US).