/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 <input type="button" value="Go Back" onclick="history.back(-1)" /> ---------------------------------------------------------------------- PHP Version: <?php $url = htmlspecialchars($_SERVER['HTTP_REFERER']); echo "<a href='$url'>back</a>"; ?>
URL: http://css-tricks.com/snippets/javascript/go-back-button/
Comments
                    Subscribe to comments
                
                