Autoscroll to the BOTTOM of the page in a set time window in Javascript -


i'm using greasekit on fluid.app. in other words, i'm using javascript.

i scroll bottom of page if time between 1900-1910 (i.e. between 7pm , 7:10pm)

so, question has 2 components, grateful if me make code this.

thanks!

you can use document.body.scrolltop (or window.scrolltop or document.documentelement.scrolltop) set scroll position. since differs between browsers, might use jquery.scrolltop method.

to determine time, need use new date().gethours() , getminutes() methods.

you have use window.settimeout() check (for example) every 5 seconds if right.


Comments

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

osx - Copy lines to os x clipboard from vim on remote console -