Home > Not Working > Javascript Scrolltop Not Working In Chrome

Javascript Scrolltop Not Working In Chrome

Contents

Posted 13-Jan-14 2:31am prem shanker verma1.3K Add a Solution Comments Kornfeld Eliyahu Peter 13-Jan-14 7:40am Can we see you code in context? If it says BackCompat, you’re not affected (but you should not use quirks mode!).Run Chrome or Opera with chrome://flags/#enable-experimental-web-platform-features enabled (or more specifically with the --enable-blink-features=ScrollTopLeftInterop command line flag). But... LED driver suitability and circuit advice 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 http://qrwsoftware.com/not-working/javascript-scrolltop-not-working-in-firefox.html

Terms Privacy Security Status Help You can't perform that action at this time. Can I install Dishonored 2 exclusively from CD without additional downloads? share|improve this answer answered Jun 30 at 10:12 Ale 157 add a comment| up vote 0 down vote So I was having this problem too and I have written this function: Some text for content. Discover More

Javascript Scrolltop Not Working In Chrome

Suggestions for easy peanut butter clean-up Why didn't "spiel" get spelled with an "sh"? Apply for a Secret CIA Job Row by row subtraction with single input number Starting collaboration through first e-mail. javascript jquery html css google-chrome share|improve this question asked Jan 14 at 17:07 Undefined Variable 1,10321527 A lot of resources available just by googling, apart from SO posts here's

I dont have an outside link and the code is too long (made with CI view Partials) to post all of it, but to CLARIFY what i've done: Fixed header, footer, Do I need an Indie Studio Name? Some text for content. Scrolltop 0 Not Working You might find these useful...

CSS-Tricks member JamyGolden commented Jun 20, 2013 http://api.jquery.com/scrollTop/ - $('html').scrollTop() and $('body').scrollTop() should return 0. Jquery Scrolltop Div Not Working asked 6 years ago viewed 57044 times active 1 month ago Upcoming Events 2016 Community Moderator Election ends in 7 days Blog How We Make Money at Stack Overflow: 2016 Edition Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI 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

This is what e.g. Jquery Scrolltop Always 0 CSS-Tricks member JamyGolden commented Jun 20, 2013 $(window).scrollTop() I think that should do what you're looking for. Already have an account? Use the document.scrollingElement API if available, and fall back to a polyfill or UA sniffing.

Jquery Scrolltop Div Not Working

I found the mistake, it was because of a wrong body,html css rule... http://www.codeproject.com/Questions/710083/Java-Script-Scroll-Top-is-not-working-in-Chrome-Br Other suggestions? Javascript Scrolltop Not Working In Chrome Join them; it only takes a minute: Sign up jquery scrollTop() not working in chrome up vote 1 down vote favorite I have already checked a few questions in SO and Jquery Window Scrolltop Not Working Check the values in FF i.e.

My coffeescript is something like this: $('a[href^="#"]').on 'click', (e) -> e.preventDefault() target = @hash $target = $(target) $('html, body').stop().animate { 'scrollTop': $target.offset().top }, 900, 'swing', -> window.location.hash = target return return his comment is here How I do it is, before reloading the page I store the calculated offset to localStorage. Where to get connecting flight boarding pass? (US domestic, Delta) GO OUT AND VOTE Magnetic effect on AC circuits? Then it will work smoothly. Jquery Scrolltop Not Working Properly

Treat my content as plain text, not as HTML Preview 0 … Existing Members Sign in to your account ...or Join us Download, Vote, Comment, Publish. Not the answer you're looking for? in an iframe, just try window.top.scrollTo(0,0); share|improve this answer answered Apr 22 at 18:01 Bruno Jullien 7112 add a comment| up vote 0 down vote I had a same problem with this contact form Why do Phineas and Ferb get 104 days of summer vacation?

Some text for content. $(window).scrolltop() Not Working in Using jQuery • 2 years ago http://sabithacreations.com/in this site i used var about = $('.about');var aboutScroll = $('.abt_part').position().top + $('.show_icons').position().top ; about.click( function(){ $('html').animate({scrollTop: aboutScroll },'slow');return false; }) in When these are used on the root element, they instead reflect the scroll position and scroll area of the viewport.

Glad to see you got your problem sorted however :) –Ben Rowe Jun 16 '10 at 1:19 | show 2 more comments Your Answer draft saved draft discarded Sign up

These give the current scroll position of the element, and the size of the scrolling area. Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 23 Star 278 Fork 159 CSS-Tricks/MovingBoxes Code Issues 27 Pull requests 0 Projects asked 4 years ago viewed 22388 times active 3 months ago Upcoming Events 2016 Community Moderator Election ends in 7 days Blog How We Make Money at Stack Overflow: 2016 Edition Scrolltop Alternative Why do most microwaves open from the right to the left?

Movie involving a cute Blondie that fights a dragon StackList implementation In what sense is Principia mathematica of Russell and Whitehead a metatheory? Anyway your solution isnt working for me in chrome. Driving through Croatia: can someone tell me where I took this photo? http://qrwsoftware.com/not-working/scrolltop-javascript-example.html This is working in every browser as well, So once again thanks........... Sign up for free to join this conversation on GitHub.

Starting collaboration through first e-mail. Solution 2 Accept Solution Reject Solution The scrollTop property isn't W3C standard - even it implemented in most browsers (originally form IE), but not in Chrome. The built-in reporter is mostly useful to report bugs related purely to the official Chrome build and not Chromium; web-related issues generally concern the whole Chromium code base. The standard property called pageYOffset (not supported in IE < 9) - try it!

Reload to refresh your session. html { overflow-x: hidden; overflow-y: hidden; } To allow scrollTop to scroll, modify your markup remove overflow markup from the html element and append to a body element. html, body { overflow-x: hidden; overflow-y: auto; } Though these rules are obviously related to scrollbars, I'm not sure why they are causing the behavior you are observing. jgehrcke referenced this issue in Automattic/jetpack Aug 19, 2015 Closed Carousel: closing carousel view brings you back to the top of the page #1125 sonus21 commented Oct 29, 2015 Thank you

this is good solution –Scooter Daraf Aug 18 at 17:09 add a comment| up vote 2 down vote I have used this with success in Chrome, Firefox, and Safari. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

Back to top