Close popup after agent finishes running

Notes app for the Web. An action opens a new browser window (popup style), the user selects an option by clicking a link. The link calls a Javascript function that gets the window.opener to run an agent and then runs another agent itself. I would like the newly opened popup window to close once its agent has finished running.

If I do self.close() at the end of the Javascript Function, the agent will not run. I've tried putting
Print "[javascript:window.close();]"
at the end of my agent too, no go.

Does this make sense, any ideas?
Who is Participating?
Sjef BosmanConnect With a Mentor Groupware ConsultantCommented:
Maybe you need to add, to the body-tage:

Other way: use a hidden Iframe to run the agents.
Sam654Author Commented:
Wow, wasn't expecting that to be such a tough question. Good work arounds, thanks.
Sjef BosmanGroupware ConsultantCommented:
You're welcome :-)
All Courses

From novice to tech pro — start learning today.