window.scrollY works in Chrome and Firefox.