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 web.show_documents(). The function opens an http 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.
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.
Is there a way to do it?
I know I can do it by sampling the database constantly, but I would like to avoid this solution because it is resource consuming.
Thanks.