<!DOCTYPE html>
<html lang="en-US">
<body>
<a href="https://wikimass.com">Wikimass.com</a>
<script>
var x = document.getElementsByTagName("body")[0];
function myFunction(){
// default value, cannot be modified
return 'Changes you made may not be saved.';
}
x.onbeforeunload = myFunction;
</script> </body>
</html>