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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -