Query string ajax

I am a form on the bottom of my page and I set up a query string in the middle of the page to populate a field when clicked, but I am finding the page refreshes and doesn’t scroll down to the GF. Is there a way to use ajax or something to stop the page from refreshing and push the user to where the form is? Thanks!