How can I handle a browser refresh event in webix?

I want to handle a refresh event on a browser in webix jet.
I tried to use destroy event but it did not work.

Hello,

You need to use unload or beforeunload event on window:
https://docs.webix.com/desktop__event_handling.html#globalwebixevents

DOM events can be handled with the help of the Webix event()
https://docs.webix.com/api___event.html

webix.event(window, "unload",  function(){ ... })