Does anyone know of a way to close a browser window from a button in perspective?
That’s unlikely to be possible other than on a popup.
I am curious as to why this wouldn’t be possible.
It’s probably browser security.
In theory. In practice, it’d still require a custom module. We’re not exposing the ability to call Window.close(), and we don’t have anywhere for you to author your own JS that runs on the frontend session (deliberately).
We might add it first-party someday, but it would have some very confusing semantics (sometimes it would work, sometimes it wouldn’t) that are probably the reason it hasn’t been implemented.