hPage.com Forum
Remember Me?
Go Back   hPage.com Forum > Website editing > JavaScript

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2009, 11:19 AM
Member
 
Join Date: Dec 2008
Location: Germany, in the near of hamburg
Posts: 34
Thanks: 1
Thanked 16 Times in 9 Posts
Default How long was my visitor on my website?

Hello,
if you use this Code for your Website, your visitor can see how long he was on your page.

Code:
<script> 
function time() 
{
i++;
}
var i=0;
setInterval('time()',1000);
window.onunload=now;
function now()
{
alert("You was "+i+" seconds here");
}
</script>
Have fun
__________________
www.potterfans.hpage.com

I hope, you can understand me
Reply With Quote
The Following User Says Thank You to Potterfans For This Useful Post:
vksiva (10-25-2009)
  #2 (permalink)  
Old 02-07-2009, 12:11 PM
musawiz's Avatar
Member
 
Join Date: Jan 2009
Location: Tuzla (Bosnia and Hercegovin)
Posts: 52
Thanks: 0
Thanked 4 Times in 3 Posts
Default

a very cool script,
thx
Reply With Quote
  #3 (permalink)  
Old 03-23-2009, 01:57 PM
Junior Member
 
Join Date: Jan 2009
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Thumbs up

easy, but great!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:00 PM.
Archive - Top