javascript - Scrolling to a particular position in Safari on iPhone -
is possible modify below code scrolls particular position in safari , not bottom now.
javascript:scroll(0,document.getelementsbytagname(%20′body’)%5b0%5d.scrollheight);
i'm okay if can suggest different code same.
thanks in advance!
you can scroll position on page using scrollto(h,v)
//h = horizontal, v=vertical window.scrollto(0,500);
edit: spaced on iphone portion. have use settimeout:
settimeout(function () { window.scrollto(0, 500); }, 1000);
Comments
Post a Comment