How to create a button that load the previous (Back) web page (URL) with HTML and JavaScript

1 Answer

0 votes
<!DOCTYPE html>
<html>
  
<head></head>
  
<body>

<script>
 
function Back() 
{
    window.history.back()
}    
            
/*
run:
  
load the previous web page (URL)
  
*/

</script>

<input type="button" value="Back" onclick="Back()">

</body>
  
</html>

 



answered Jul 14, 2015 by avibootz
...