When loading site jumps to the middle

Asked

Viewed 33 times

0

Well that’s my first question here, I created a stackoverflow account just for that because I can’t find the answer anywhere!

I just renewed this page http://www.acm.esy.es/ who is staying at Hostinger on a free plan! When uploaded it jumps to the end of the site or to the middle! I’ve done several performance optimizations but the error keeps happening! Could help me?

1 answer

1


The problem is the attribute autofocus in the field:

<input type="text" name="nome" id="nome" required autofocus>

When the page is loaded, the input automatically wins focus, scrolling the page to where it is on the page

To solve this, just remove:

<input type="text" name="nome" id="nome" required>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.