How do you get the pageYOffset of from the bottom of the window and not the top ( Javascript )?
- by user782860
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?