Setting this script on your website will give your visitors the great opportunity to see their last visited pages of your website. The visited pages links are created by using DOM and JavaScript. Script is working by the Cookies (the visited pages are kept for example about a month – the period is decided by you). The quantity of the shown links are set by you. So, this is a very effective and comfortable script, that will be very pleasant for the visitors of your website.

How To Use:

1. Copy the the_last_visited_pages.js and the_last_visited_pages.css into your website directory.

2. Write in the <head></head>
<link rel=”stylesheet” href=”the_last_visited_pages.css” type=”text/css” />
<script src=”the_last_visited_pages.js” type=”text/javascript”></script>

3. Set <div id=”the_last_visited_pages”></div> where you want to show the last visited pages of the visitor.

4. Add <script type=”text/javascript”>start_the_last_visited_pages();</script> just after </body>

How To Customize:

You can use CSS to style it. Edit the code in the_last_visited_pages.css

Version:

1.0

License:

Creative Commons License
The Last Visited Pages by Ruben Sargsyan is licensed under a Creative Commons Attribution 3.0 Unported License.
Based on a work at rubensargsyan.com.

Donate:

If you find this plugin useful to you, please consider making a small donation to help contribute to further development. Thanks for your kind support!
Donate

Share

4 Comments on The Last Visited Pages

  1. David says:

    I like the code that you have posted but it poses a question, have you tried using Session Cookies instead of Client Cookies?

  2. David,

    This is browser based code, so we can’t use Session Cookies by php.

    Thanks.

  3. Nagarjuna says:

    Hi,
    I have an application where there are nearly 20 jsp pages. When I click any jsp page on the menu it will be displayed in the ‘iframe’ area of the page so the page is remaining the same and iframe content is changing. Your code always displaying the title of the page containing this iframe. Can you make this code applicable to the iframe please.

  4. Nagarjuna says:

    There is one feature I am looking for here. If I have visited pages count=10 and when user visits more than 10 page then the old pages has to be replaced by new visited page after count 10

Leave a Reply

Info