Yes I have tried what you suggested and with Chrome, Firefox, and Edge the event is only triggered when the window is closed and not when the page changes.
I think my original question was unclear 🙁
When seamless is off Lectora unloads the current page to load the next page. I can “know” when this unloading occurs by listening for the event window.addEventListener(“beforeunload”, blah); With seamless on the pages are changed in a way that does not trigger an onbeforeunload event and I’m wondering what events are triggered.
Returns the window objects that is to be used for dealing with the js objects generated by lectora and all window related attributes
Returns the document object that is to be used for dealing with the visual HTML objects, it contains all of the currently HTML elements for the page
Returns an HTML element that represents the page div
Returns a string with the name of the current page div
appendElement(obj, parentElement, htmlElement)
This function can be used for attaching objects to the current page div; the customer would only need to pass in the last attribute as either a HTML element or a string.
Please try using getDisplayWindow().addEventListener(“beforeunload”, blah); instead of window.add