knightsjoker
12-02-2009, 03:59 PM
Hiya
was wondering if someone can help me with this:
basically i'm trying to create a Back button for a report page.
the first report page is a listing of dates... if i click on a date... it will open up a page with detail.
I want to put the history.go on the page with detail to go back to the date listing page.
obviously the page with details has page numbers. i already added a counter for clicking on the [previous] or [next].
i'm thinking of just using that click++ value and put the value on the var within history.go(var)
var clickCount = 1;
function addcount() {
a = clickCount++;
return a;
alert(a);
}
<a href="javascript:history.go( dunno what to put here )">Back</a>
<a href="abc" onclick="addcount()">Previous</a>
<a href="def" onclick="addcount()">Next</a>
possible?
or is there a better way to do this?
no direct url won't work.
was wondering if someone can help me with this:
basically i'm trying to create a Back button for a report page.
the first report page is a listing of dates... if i click on a date... it will open up a page with detail.
I want to put the history.go on the page with detail to go back to the date listing page.
obviously the page with details has page numbers. i already added a counter for clicking on the [previous] or [next].
i'm thinking of just using that click++ value and put the value on the var within history.go(var)
var clickCount = 1;
function addcount() {
a = clickCount++;
return a;
alert(a);
}
<a href="javascript:history.go( dunno what to put here )">Back</a>
<a href="abc" onclick="addcount()">Previous</a>
<a href="def" onclick="addcount()">Next</a>
possible?
or is there a better way to do this?
no direct url won't work.