jcadima
1/20/2016 - 3:01 PM

Browser Back button

Browser Back button

https://css-tricks.com/snippets/javascript/go-back-button/


<a href="javascript:history.go(-1)" class="backToPortfolio test">

<input type="button" value="Go Back From Whence You Came!" onclick="history.back(-1)" />


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