title: Synchronize between oracle forms and web browser
body: <p>I have an application built in Oracle web forms 10g.
  The users can access the form through a web browser.
  In the form, there is a button which calls the function <code>web.show_documents()</code>. The function opens an <code>http</code> page in another browser window.
  I want to be able to know if the new window is still open or it has been closed by the user, because I don't want him to be able to open that http address more than one at a time.</p>
  
  <p>In other words, I would like to disable the button from the moment it was pressed until the new windows (that was created by that button press) is closed.</p>
  
  <p>Is there a way to do it?</p>
  
  <p>I know I can do it by sampling the database constantly, but I would like to avoid this solution because it is resource consuming.</p>
  
  <p>Thanks.</p>