E
E
Egor Trubnikov-Panov2014-05-15 07:26:38
JavaScript
Egor Trubnikov-Panov, 2014-05-15 07:26:38

Are there alternatives in IE window.scrollX and window.scrollY ?

You need to know the position of an element in order to move an absolutely positioned block to it.
I do this:
var top = $obj.offset().top - scrollY;
But ie does not understandwindow.scrollY

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Brand, 2014-05-15
@EAT

$(window).scrollTop()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question