Ask user to save the data before window close
window.onbeforeunload = function (e) {    // return a string if you don't want to close    // the...
Tags: javascript, webdev, webassembly