Goto specific page, back, or forward

A

Anonymous

Guest
Hi,

How do I code:

1- Go Back (like the browser's back button)
2- Go forward (like the browser's forward button)

Thanks
 
Code:
<a href="javascript:history.go(-1)">Back</a>

<a href="javascript:history.back()">Back</a>



<a href="javascript:history.go(+1)">Forward</a>

<a href="javascript:history.forward()">Forward</a>
 
That, I knew. It puts a link to previous and next page. But I don't want to put a link. I want to be able to change the page by the PHP script, so the user doesn't have to click on the link.

Is that doable?

Thanks
 
u can't ask php to do that, you will have to use the header function for that.
or use the META tag with http-equiv
 
Back
Top