History go() Method - Go forward one page - Javascript Browser Object Model

Javascript examples for Browser Object Model:History

Description

History go() Method - Go forward one page

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<button onclick="goBack()">Load the next URL in the history list</button>

<script>
function goBack() {//  w  ww.  j av  a  2  s. co  m
    window.history.go(1);
}
</script>

</body>
</html>

Related Tutorials