The JavaScript below helps keep the visitor on the web page by displaying a message of how long they visited the page.
We have mainly placed this script on Computer Hope to look at the source code for ideas of other possible JavaScript. We do not recommend anyone placing this script on your web pages, as this irritates the viewers of your web pages.
Also, as an example, we have placed this code on our example page. For the code to work on your page, place it in the head tags.
Example source code
The JavaScript code below does not work in the latest versions of modern Internet browsers.
Related information
- See our JavaScript definition for further information and related links on this term.