mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00

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?
20 lines
420 B
HTML
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>
|