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:

var z;
var a = z = document.location.toString();
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>");

Times Viewed: 0

Leave a Reply

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