关闭页面(不管何种方式关闭)的时间代码
请帮助我看看获取并写入数据库关闭页面(不管何种方式关闭)的时间代码<script LANGUAGE="Javascript">
function bye() {
pageClose = new Date();
hours = (pageClose.getHours());
minutes = (pageClose.getMinutes());
seconds = (pageClose.getSeconds());
th = (hours);
tm = (minutes);
ts = (seconds);
}
</script>