Home > Not Working > Window.scrollto0 1 Not Working

Window.scrollto0 1 Not Working

Contents

Thanks you! ~ JK ~ jwlms commented Oct 28, 2011 Is this going to make it into jQuery Mobile? Join them; it only takes a minute: Sign up window.scrollTo is not working in mobile phones up vote 4 down vote favorite 1 on my mobile view of my webpage i HTTPS Learn more about clone URLs Download ZIP Code Revisions 8 Stars 181 Forks 39 Normalized hide address bar for iOS & Android Raw hideaddrbar.js /* * Normalized hide address bar At first I tested and the code didn't work, I though it has to be something wrong. http://powerglobaldesigns.com/not-working/window-scrollto0-0-not-working.html

Why get the scroll position of the page first? window.scrollTo(x, y); works perfectly fine if your content is large enough. –Torsten Walter Aug 7 '12 at 11:54 My dom looks like this

now i Register a new account or login. Frankly speaking, the return value depends more on the browser than of the OS.

Window Scrollto Iphone

I'm also not at all certain that the implementation displayed will continue to work as-is into the future, which is why I was quite surprised to find so many of the I think it's good to use the one the acts on rotation of device with another. Hope this helps.. :) share|improve this answer answered Jan 4 '13 at 6:40 Adam Huddleston 77212 add a comment| up vote 0 down vote Try something like window.onload = function() { Finally, the main reason I wanted to address this issue in such great detail is to raise awareness for just how fickle this approach truly is.

  1. Already have an account?
  2. more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation
  3. What specifically did Hillary Clinton say or do, to seem untrustworthy to Americans?
  4. That UA test above will also include non-safari browsers, like Opera Mini; not sure that'd be intentional.
  5. Making it Conditional One consideration with the above approach not yet discussed is how to handle users visiting from a non-mobile or unsupported web browser.
  6. Do the guest schools spend an entire academic year in the host school during the Triwizard Tournament?
  7. share|improve this answer answered Mar 29 '13 at 0:02 Mark Ni 1,24711423 I applied your solution #2 and it works great.
  8. Terms Privacy Security Status Help You can't perform that action at this time.
  9. Should I have doubts if the organizers of a workshop ask me to sign a behavior agreement upfront?

Internal/Anchor Links Variations on the above browser hack are already widely implemented on the web. It's that simple. asked 3 years ago viewed 2220 times active 3 years ago Upcoming Events 2016 Community Moderator Election ends in 6 days Blog How We Make Money at Stack Overflow: 2016 Edition Javascript Scrollto Not Working Unable to change publishing settings as admin How do I get the last lines of dust into the dustpan?

The Problem with the "Fix" 1. I use the first 2 together and it works good. If you want to use it in the most vanilla sense do this: