how to use a 'back' like a internet explorer...not link to another page.....
use javascript <script> history.back(-1);</script>
when user click 'back',it return to the page before...how to do that with this script?
<a href="#" onclick="<script> history.back();</script>"> Back</a>
In other words, use something other than PHP. Oh, this is a PHP forum. Okay:
<a href="<?php echo $_SERVER['HTTP_REFERER']?>">Click here to go back (or just use your browser's back button)</a>
jansky wrote:<a href="#" onclick="<script> history.back();</script>"> Back</a>
What about <a href='javascript:history.go(-1)'>hello</a>?
Or <a href='javascript://' onClick='history.go(-1)'>hello</a>? (No "<script> tags or javascript: is needed in the onClick parameter because it is JS to begin with).