Results 1 to 2 of 2

Thread: Redirect to a random page fixed number of times

  1. #1
    Join Date
    Jun 2015
    Thanked 0 Times in 0 Posts

    Default Redirect to a random page fixed number of times


    I know nothing about JavaScript but for the purposes of a psychological experiment I need a webpage that redirects the visitor randomly to one of the 100 webpages (page1.html, page2.html....).
    However, I also need the page to redirect to each of these pages only 5 times, so that each of those 100 pages is viewed only by 5 people.

    I would greatly appreciate any help in making this webpage.

  2. #2
    Join Date
    Nov 2014
    On A Scottish Island
    Thanked 62 Times in 58 Posts


    I doubt that you'll be able to do that with Javascript as you will need a database to keep a record the previous visits. You'll probably have to use PHP.

Similar Threads

  1. Replies: 1
    Last Post: 07-30-2008, 05:30 PM
  2. Replies: 1
    Last Post: 07-25-2008, 07:00 PM
  3. Random Number
    By Rockonmetal in forum PHP
    Replies: 5
    Last Post: 09-16-2007, 09:30 PM
  4. Help - Random Number script..
    By kamisaibou in forum JavaScript
    Replies: 2
    Last Post: 03-02-2006, 10:46 PM
  5. How To Apply an "effect" a certain number of times?
    By Markxxx in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 02-19-2006, 12:14 AM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts