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

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -