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);  

http://jsfiddle.net/vlmb9/

edit: spaced on iphone portion. have use settimeout:

settimeout(function () {   window.scrollto(0, 500); }, 1000); 

Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -