LR 12.01 TruClient IE OnUnLoad prompt not handled

Hi,

 

I am trying to make the TC IE script to navigate out of a frame which triggers a 'Message from webpage' dialog. Standard Object functions cannot handle it properly (Button definition is limited to "OK" and "Cancel"), so I've tried to evaluate JS:

 

"javascript&colon;window.onbeforeunload=null;document.body.onbeforeunload=null;window.onunload=null;document.body.onunload=null;window.onblur=null;document.body.onblur=null;window.onkeypress=null;window.onkeyup=null;document.body.onkeypress=null;document.body.onkeyup=null;document.body.innerHTML='<body>Try closing now.</body>';document.getElementsByTagName('head')[0].outerHTML='<head></head>';void 0;"

 

Any suggestions?