onbeforeunload trouble

Hello All,


I have already tried to search the site for the window.onbeforeunload or placing the onbeforeunload call in the opening body tag.


http://www.lectora.com/forum/f2/you-sure-you-want-exit-1678/


http://www.lectora.com/forum/f2/code-remove-browser-x-7701/


My problem I am facing is that when I publish my Lectora course as HTML both methods work just fine.

However, when I attempt to publish the course as SCORM neither method works.


I need to fire a callback function to my web app before the browser closes.


Any suggestions or feedback will be greatly appreciated.


Kindest regards,


-James


As a side note: I am making the change to the HTML page via notepad after Lectora has published the course. <--bad practice...I am accustomed to doing things by hand and don't really use WYSIWYG programs.

Discussions have been disabled for this post