How can i capture window.close event for unlocking docs

I want to unlock the document on web when user closed the window. The document gets locked when user clicks on the “Edit” button & gets unlocked when user saves the document.

Can’t rely on “unLoad” event for capturing window.close event as document gets unloaded several times while filling the form.

Want to capture the window.close event and unlock the document when user closes the document.

Any help would be appreciated.

Subject: How can i capture window.close event for unlocking docs

Maybe http://www.xetrion.com can help you.

Subject: How can i capture window.close event for unlocking docs

Could you run an agent in the WebQuerySave property of the form?