Position Form changeform?

Sometimes it is necessary for the user to go up the screen and when clicking on a button that has the changeform command, the following form is in the same position as the previous form. Is there any command that returns the form to its initial position?

I solved my problem using the window.scrollTo(0,0) command