Do you have idea for workaround for it?
Steps to reproduce: 1. Create html file with content.
<html>
<head></head>
<body>
<script>
var func = function(){
return 'xxx';
};
window.onbeforeunload = func;
</script>
</body>
</html>
I have answer from Microsoft: "This issue appears to be fixed in MS Edge". You can read it here: https://connect.microsoft.com/IE/feedback/details/1112178/bug-in-ie10-and-ie11-with-onbeforeunload-and-closing