history.back()
In this chapter you will learn:
Back a step
We can use history.back()
method to go one step back.
history.back()
mimics the browser Back button.
<!DOCTYPE HTML> <!-- j a v a2 s.c o m-->
<html>
<body>
<script type="text/javascript">
//go back one page
window.history.back();
</script>
</body>
</html>
Next chapter...
What you will learn in the next chapter:
Home » Javascript Tutorial » History