BOM Browser Object Model History Object tutorial in JavaScript
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>BOM History Object JavaScript</title>
</head>
<body>
<h1>JavaScript : History Object</h1>
<button onclick="backFunction()">Back</button>
<button onclick="forwardFunction()">Forward</button>
<button onclick="goFunction()">Go</button>
<script>
function backFunction() {
history.back();
}
function forwardFunction() {
history.forward();
}
function goFunction() {
history.go(2);
}
</script>
</body>
.png)
.png)
Comments
Post a Comment