Moving input field to top when focused / clicked. How to do that?

Hi all, is this possible?

Let’s say we have an input field on the middle of your page / screen… yet what I want to do, is that if I click on focus on the input field, the input field should go to the top of the screen and be focused there… so it’s like scrolling the input field to the top of the screen.

Is this possible?