function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

VisualForce Page - Next command - return to the top of the page

I have a visualforce page that displays a table of data. The table can be displayed on several pages. I have two buttons following and preceding which allow to go from one page to another, the 2 buttons are displayed at the bottom of the page. My issue is the following: When click on next, the next page will be displayed but I remain at the bottom of the page. How can I return to the top of the page and move to the other page at the same time?
this is my visualforce code
<span class="prevNext">
                                <img src="/s.gif" class="prevoff" alt="Précédent"/>
                                <apex:commandLink action="{!Previous}" title="Page Précédente" value="Précédent" rendered="{!NOT(disablePrevious)}" rerender="my_call_list" status="changeCamp"/>  
                                <apex:outputPanel styleClass="pShowLess noLink" style="color:grey" rendered="{!disablePrevious}">Précédent</apex:outputPanel>           
                            <span class="prevNext">
                                <apex:outputPanel styleClass="pShowLess noLink" style="color:grey" rendered="{!disableNext}">Suivant</apex:outputPanel>           
                                <apex:commandLink title="Page Suivante" value="Suivant" rendered="{!NOT(disableNext)}" action="{!Next}" rerender="my_call_list" status="changeCamp"/>
                                <img src="/s.gif" class="nextoff" alt="Suivant"/>
                            <span class="prevNext">
                                <apex:commandLink action="{!End}" title="Fin" type="image/gif" rendered="{!NOT(disableNext)}" rerender="my_call_list" status="changeCamp">
                                    <apex:image value="/s.gif" styleClass="lastoff" alt="Fin"/>