Unstoppable Domains — AI Assistant

A Script that tells you how long u spent on page when closed!

Spaceship Spaceship
Watch

Sakura

NamePros Eliteâ„¢VIP Member
Impact
23
Time Spent on Page


This script displays an alert message when a page is closed, telling the visitor how long (in seconds) they have been on the page. It can also display the time on the page in the title bar.
Code:
<!-- Paste this code into an external JavaScript file named: timePage.js  -->
/*
var time=1;

function timeHere() {
  time = time + 1;
  finalTime = time / 10;
/* Remove the "//" below to display in the title bar
  the amount of time the visitor has been on the site.
  Be aware though, that it does tend to be a bit distracting. */
// document.title = finalTime+" seconds you been here for!";
}

function sayTime() {
  finalTime = time / 10;
  alert("Thank you for coming to my site! \n You have been here " + finalTime + " seconds!");
}



<!-- Paste this code into the HEAD section of your HTML document.
     You may need to change the path of the file.  -->

<script type="text/javascript" src="timePage.js"></script>



<!-- Paste this code into the BODY tag -->

<body onload='window.setInterval("timeHere()", 100)' onunload="sayTime()">
In the code, you may neeed to read some of it. Hope you like the script provided!

I will continue to paste more scripts soon!
 
1
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Nice script.
Do you have a php version?
Cause many of my friends disable javascritp as they are paranoid about security.
 
0
•••
sorry i dont', but becuase javascripts are the only one i know that creates pop-up. More scripts coming soon thanks to bbalegere.
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer

We're social

Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back