67
rated 0 times
[
72]
[
5]
/ answers: 1 / hits: 33717
/ 11 Years ago, mon, july 22, 2013, 12:00:00
I'm trying to alert something out after closing page.
A simple window.unload
example as below :
HTML
<html>
<body>
<script src=http://code.jquery.com/jquery-1.10.1.min.js></script>
<script src=http://code.jquery.com/jquery-migrate-1.2.1.min.js></script>
<script src=test.js type=text/javascript>
</html>
test.js
$(window).unload( function () {
alert(Bye now!);
});
P.S :
I have tried javascript too, but doesn't alert anything out !
test.js
window.onunload = function() {
alert(Bye now!);
};
More From » jquery