History.go(-2) : history « Javascript Objects « JavaScript DHTML
- JavaScript DHTML
- Javascript Objects
- history
History.go(-2)
<html>
<head>
<title>History</title>
</head>
<body>
<h1>history object</h1>
<a href="" onclick="history.back();return false">history.back()</a><br />
<a href="" onclick="history.go(-2);return false">history.go(-2)</a><br /><br />
<a href="" onclick="history.forward();return false">history.forward()</a><br />
</script>
</body>
</html>
Related examples in the same category