'forward()' Example : forward « Javascript Methods « JavaScript Reference
- JavaScript Reference
- Javascript Methods
- forward
'forward()' Example
<html>
<body>
<script language="JavaScript">
function function1() {
history.forward();
}
</script>
<a href="http://www.java2s.com">Open a new document to build the history object</a>
<input type="button" value="Go forward" onclick="function1();">
</body>
</html>
Related examples in the same category