htmx/test/manual/anchors/has-anchors.html
Carson Gross 7e7a5b4361 fix https://github.com/bigskysoftware/htmx/issues/827
keep local URL anchors along for the magical ride into the history API, and scroll to the target directly to avoid adding a junk history entry along the way

have i mentioned that I hate the javascript history API?
2022-07-11 13:34:40 -06:00

20 lines
420 B
HTML

<div style="height: 800px;background-color: blue">
</div>
<h1 id="anchor1">Anchor 1</h1>
<div style="height: 800px;background-color: blue">
</div>
<h1 id="anchor2">Anchor 2</h1>
<div style="height: 800px;background-color: blue">
</div>
<h1 id="anchor3">Anchor 3</h1>
<div style="height: 800px;background-color: blue">
</div>
<h1 id="anchor4">Anchor 4</h1>
<div style="height: 1800px;background-color: blue">
</div>