1. add a text area at the bottom of the page with a div placeholder to determine the target location:
html
<div hidden id="bottom"></div>
2. add a javascript to that text area to run script. wait a bit for page to load. (dont mess with window.onload)
js
setTimeout(()=>{
//your script goes here. Example that scrolls into #bottom:
document.getElementById("bottom").scrollIntoView({
behavior: 'smooth'
})
},1000) //adjust accordingly in ms
No comments:
Post a Comment