Script adds id
for block, gives:
<div id="some">Text</div>
After that page should jump for that id
, without animation, just like we have target #some
on current page link.
How to do this?
Thanks.
Try this:
document.getElementById('some').scrollIntoView(true);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With