title: Not getting scroll position in Iphone
body: <p>I am working in salesforce1, I want to set the position of scroll bar but i am not able to get the current position of scroll bar in Iphone.</p>
  
  <p>I tried everything like <code>window.scrollTop()</code>, <code>window.pageyOffset</code> but all are returning <code>0</code>.</p>
  
  <pre><code>&lt;img src="......." onclick="getScrollTop();"/&gt;
  </code></pre>
  
  
  
  <pre><code>function getScrollTop(){ 
      alert($(window).scrollTop()); 
      alert(parent.window.pageYOffset); 
  }
  </code></pre>
  
  <p>Please help if anyone knows how to get and set scroll position in Iphone</p>