1

I have a problem with page view, when I apply a filter (i.e : Price, Colours ...etc) the result page begin from footer if I have only a few products, but when I have many results the view begin from middle of the page (I need to scroll up to view the first product).

1 Answer 1

0

I resolved the problem with changing the line from document.body.scrollTop = 0; to document.documentElement.scrollTop = 0; and working perfectly

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.