I am on Drupal 7.
I have a Views block with a pager sitting on the bottom part of it. I am using AJAX pager, meaning the page isn't reloaded. When the pager is clicked, the block reloads all the elements inside of it to display elements on the second page. But because my block is kind of long, when the pager is triggered, I would like to take my user again to the top of the block. I can do that with an anchor that will slowly scroll the page to the anchor that sits on top of that block. There is no issue with this. My doubt is: how can I add a javascript listener that will capture a Views AJAX pager click so that my code can be executed? What is the right Drupal way of doing this? Thank you so much.