Question

How to specify some actions on Tab close event
Hi!
I have an application where work objects are opened as a new window (tab). I want to specify some action for tab closing event(call activity, call data transform, for example)/ But I Have No idea ho to do this. I found an activity Work- DoClose but it is final and there are no extension points in it.
Also I found a PDN article, where i saw the following script:
window.onbeforeunload = function(e) {
document.getElementById('hiddenfieldname').fireEvent('onchange');
}
hiddenfieldname is a Hidden Text control where I can specify actions on Action tab. But this function does not work. I tried to replace document.getElemetByID....... with alert('123'); but it takes no effect.
Please, tell me, is it possible to extend this tab close event?
P.S.
Browser: Chrome, IE
PRPC 7.1.8
Thanks.
Mikhail Ilyin