Any example with "onbeforeunload" for dirty form check ?

Does anyone find a solution for adding onbeforeunload when editing a resource , to prevent dirty form data loose ?
Was this page helpful?