electron/spec/fixtures/api/close-beforeunload-string.html
2013-09-02 16:28:36 +08:00

13 lines
275 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
window.onbeforeunload = function() {
setImmediate(function() {
require('remote').getCurrentWindow().emit('onbeforeunload');
});
return 'string';
}
window.close();
</script>
</body>
</html>