history.back()
We can use history.back() method to go one step back. history.back() mimics the browser Back button.
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
</head>
<body>
<script type="text/javascript">
//go back one page
window.history.back();
</script>
</body>
</html>