Go one step forward with history.forward() in JavaScript
Description
The following code shows how to go one step forward with history.forward().
Example
<!--from ww w.j a v a 2s . c o m-->
<!DOCTYPE HTML>
<html>
<body>
<script type="text/javascript">
//go forward one page
window.history.forward();
</script>
</body>
</html>
The code above generates the following result.
Javascript Tutorial Browser History
Add an Entry to the Browser History with hi...
Go one step back with history.back() in Jav...
Navigate to the first location in history t...
Tell how many items are in the history stac...
Add an Entry to the Browser History with hi...
Go one step back with history.back() in Jav...
Go one step forward with history.forward() ...
Navigate through the user's history backwar...Navigate to the first location in history t...
Tell how many items are in the history stac...