Alex Rivera | Logout

Alternatives to window.scrollMaxY?

Asked 2009-07-07T08:36:47.490
13

I' trying to use window.pageYOffset & window.scrollMaxY to calculate the current page progress. This approach works under FF3.5 but under webkit window.scrollMaxY is undefined.

Edit
Report

1 Answer

2

I've got away with document.body.scrollHeight so that

document.body.scrollHeight = window.pageYOffset + screen height in pixels

at the end of the page (on Android).

answered 2009-07-07T10:36:16.670

Your Answer