Return to Snippet

Revision: 46323
at May 17, 2011 19:25 by dubogii


Initial Code
<input type="button" value="Go Back" onclick="history.back(-1)" />


----------------------------------------------------------------------


PHP Version:
<?php
  $url = htmlspecialchars($_SERVER['HTTP_REFERER']);
  echo "<a href='$url'>back</a>";
?>

Initial URL
http://css-tricks.com/snippets/javascript/go-back-button/

Initial Description

                                

Initial Title
“Go Back” Button

Initial Tags

                                

Initial Language
JavaScript