I have a custom feed filter visualforce page created with the help of this link. And then I added the vf page in lightning component with iframe and in case page layout. After the page is loded main-colum scrollbar is scroled to bottom of the page. How to get the scroll bar at top after page loded.



If i run $('.main-col').scrollTop = 2; from browser console scrollbar is moving to top but am not sure whare to use this jQuery.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.