Expand my Community achievements bar.

How do I close a (browser) tab after a submit?

Avatar

Level 3

Hi,

We have a flex app that calls our java back end to render a pdf (via LC java api) to a new browser window/tab.  Then we would like to close that browser window/tab after the user submits the form successfully, but we haven't figured out a way to do so.

There were mentions of using event.target.closeDoc(true); in Acrobat JavaScript, but I believe that works if the pdf was launched in a stand-alone Acrobat Reader, not when it was rendered to the browser.

Are there any examples out there?  Any help would be appreciated, thanks in advance.

- Nelson.

3 Replies

Avatar

Former Community Member

You can't close browser windows through calls from within Acrobat. Your only option is to close the window using javascript within the browser, however that only works if the window was opened using javascript within the browser.

Avatar

Level 3

Um....  I see, thanks...  That was I was afraid of.