»
EnglishFrenchVietnamese

Print - Total time on Exit - JavaScriptBank.com

Full version: jsB@nk » Misc » Total time on Exit
URL: https://www.javascriptbank.com/total-time-on-exit.html

Total time on Exit © JavaScriptBank.comThis JavaScript will alert total time you spend on the page when exit.

Full version: jsB@nk » Misc » Total time on Exit
URL: https://www.javascriptbank.com/total-time-on-exit.html



JavaScript
<script language="JavaScript">/*Source: everywhere to find*/Start = new Date();Intime = Start.getTime();function duration() {End = new Date();Outtime = End.getTime();duration = Math.ceil((Outtime - Intime) / 1000);alert("Sie waren genau " +duration+ " Sekunden auf dieser Seite.");}function Popload() {//http://www.javascriptbank.comp3=window.open('http://www.javascriptbank.com','','fullscreen');}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onUnload="duration()"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->