Solved

New Page when Refreshed, Using Javascript

Posted on 1997-01-27
1
255 Views
Last Modified: 2013-12-25
I would like to know how to use Javascript, if possible, to load a new page every time my web site is hit, or reloaded.
ie:
index1.html
index2.html
index3.html
...up to 10 (or whatever number)

each time someone hits, or reloads, a different, random, welcome page is loaded.

Can this even be done?
0
Comment
Question by:ghstrydr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
pc012197 earned 50 total points
ID: 1853894
try the following as "index.html"

<html><head><title>loader page</title>
<script>
function newpage()
{
    window.location="index"+Math.ceil(10*Math.random())+".html";
}
</head>
<body onLoad="newpage();">
this is a dummy page
</body></html>

This is about all you need.

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to dynamically set the form action using jQuery.

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question