Next page in Sequence

[Total: 0    Average: 0/5]

This example will determine the current page and what the next page should be.

Body Code:

This page is: (pretend) 
var _thispage = document.location.toString();
    _thispage = ""; // remove this test line
<BR><a href="javascript:nextP()">next page</a><BR>
function nextP() {
  var _l = _thispage;
  var _n = _l.substr(0,_l.indexOf(".html"));
  var _x = _n.substr(0,_n.lastIndexOf("."));
  var _j = _n.substr(_n.lastIndexOf(".")+1,_n.length);
  var _i = _x+"."+_j+".html";
  // remove the comments and the alert statement to use.
  alert("This would have been the next page visited:n"+_i);

Times Viewed: 0

Leave a Reply

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