Skip to content

Instantly share code, notes, and snippets.

@dshaw
Created April 21, 2010 16:25
Show Gist options
  • Save dshaw/374045 to your computer and use it in GitHub Desktop.
Save dshaw/374045 to your computer and use it in GitHub Desktop.
var scrollTop = Math.max(doc.documentElement.scrollTop, doc.body.scrollTop);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment