How do you get the pageYOffset of from the bottom of the window and not the top ( Javascript )?

Posted by user782860 on Stack Overflow See other posts from Stack Overflow or by user782860
Published on 2011-11-15T01:47:27Z Indexed on 2011/11/15 1:50 UTC
Read the original article Hit count: 155

I need to get the pageYOffset of the bottom of the viewable area, whether the user is zoomed in on the webpage or not, on Mobile Safari ( iPhone ). However pageYOffset returns the offset from the upper left corner of the window.

Spec:

"pageYOffset properties returns the pixels the current document has been scrolled from the upper left corner of the window"

How do you get the page y offset from the bottom of the viewable area, (zoomed in or not) on the iPhone via Javascript?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about iphone