Count page in sequence

[Total: 0    Average: 0/5]

This example sends the user to the same page but with a parameter incremented each time.

Body Code:

<script>
var z;
var a = z = document.location.toString();
document.write("<BR>"+a+"<BR>");
var b = a.indexOf("?");
var c = b==-1?0:a.split("?")[1];z=a.split("?")[0];
var d = 1+parseInt(c);
var e = z+"?"+d;
document.write("<B><BIG>YOUR COUNT IS "+d+"</BIG></B><BR><BR>");
document.write("<a href='"+e+"'>next page("+e+")</a>");
</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *