Grabbing scroll position with JavaScript/jQuery?

Is it possible to grab the current position of the users scroll bar?
Say, if they were scrolled to the very top it would be 0, if they scrolled down obviously it’d change. Can I set this to a variable or is there a function in JavaScript for this already?

newest questions tagged jquery – Stack Overflow

About Admin