How to Close a Teams Dialog from Its Web Page with TeamsJS
A Teams dialog has its own close button, the X in its corner, but a web page inside it can close it too, for example from an OK button. One call to the Teams JavaScript library does it: microsoftTeams.dialog.url.submit(), with no arguments.
