Any browser action causes all story progress to be lost
Created originally on Bitbucket by Daniel Talsky
The back and refresh browser buttons completely navigate away from the story and lose all progress. In mobile browsers, a refresh happens automatically after a certain period of inactivity. Attempts to use javascript to prevent the onbeforeunload event do not seem to work in the javascript section of the tool. For inexperienced users this has been the cause of a lot of user abandonment.
#!javascript
window.onbeforeunload = function() {
return "Are you sure you want to leave the story? You will lose all progress.";
};