TeddyCoder | Web Freelancer in Hochiminh City

Close tab alert

<script>
window.addEventListener("beforeunload", function (e) {
var confirmationMessage = "\o/";

(e || window.event).returnValue = confirmationMessage; //Gecko + IE
return confirmationMessage; //Webkit, Safari, Chrome etc.
});
</script>

BACK