views:

139

answers:

4

As far as I know, pageY/XOffset properties were already available since Netscape 4 era.
And it seems scrollY/X were introduced circa Netscape 6.

Alternative question: Is there a browser which implements scrollY/X but doesn't support pageY/XOffset?

A: 

Everything about it. As you can see pageXOffset isn't supported by Internet Explorer. In IE you should use scrollLeft / scrollTop of document.body or document.documentElement depending what works (just like it is implemented in jQuery).

You can check it here: http://jsfiddle.net/8RFAn/1/

And I don't know why window.scrollX/Y were introduced, for me these properties looks like pageX/YOffset in terms of effect and browsers in which are implemented.

pepkin88
thx for the effort but it doesn't answer either of my questions ^^
Knu