I'm working on a popup window that's launched from the Blork bookmarklet.
I just learned how to get the window to close after the user presses Submit.
Return a script in the body of the html that closes the window:
<script>window.close();</script>.
Works like a charm.
One part changes, radio2suite.main.
It sets a new flag, pta^.radio2.flSubmitButton, if the user clicked Submit.