View Full Version : Redirect to a random page fixed number of times

06-01-2015, 09:11 PM

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.

06-02-2015, 07:04 AM
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.