can someone please post the code for users to go back and forward from pages
cos im gonna put those links in my site
(will give rep)
Printable View
can someone please post the code for users to go back and forward from pages
cos im gonna put those links in my site
(will give rep)
Go back:
<A HREF="javascript:history.go(-1)">Go back.</A>
You mean like a back button ?
Also, you can'treally go forward because it wouldn't know what page to go to ?HTML Code:<form>
<input type="button" value="Go Back"
onclick="history.back(-1)">
</form>
If you go back a page, you can go forward :p
then it would be
I think, Probably wrong.HTML Code:
<form> <input type="button" value="Go Forward" onclick="history.forward(1)"> </form>
Go Back
Go forwardPHP Code:<A HREF="javascript:history.go(-1)">Back</A>
If that doesnt work for forwardPHP Code:<A HREF="javascript:history.go(1)">Forward</A>
PHP Code:<A HREF="javascript:history.go(+1)">Forward</A>