blob: 47709ff084220f84a8c8dc05d21f1c0366ee05a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<html>
<head>
<title>page5</title>
</head>
<script>
addEventListener('DOMContentLoaded', (event) => {
document.getElementById('anchorLink').click();
});
</script>
<style>
.fardown {
position: absolute;
top: 2500px;
}
</style>
<body>
<div><a id="anchorLink" href="#anchor">go to the anchor</a></div>
<div class="fardown" id="anchor">here is the anchor</div>
</body>
</html>
|