title: Preventing password box auto select
body: <p>I am learning django and have built a very basic profile form, I am experiencing a strange issue during page load.</p>
  
  <p>The profile page has a password change form which is at the page bottom and during the browser loading, it auto-navigates to this form and enters the first input field of the form?</p>
  
  <p>Has anyone experienced this and if so how do i prevent this from occurring?</p>
  
  <p>Form on load: </p>
  
  <pre><code>&lt;div class="col-lg-4"&gt;
  &lt;div class="block"&gt;
      &lt;!-- Table Styles Title --&gt;
      &lt;div class="block-title"&gt;
          &lt;h2&gt;&lt;strong&gt;Change Password&lt;/strong&gt;&lt;/h2&gt;
      &lt;/div&gt;
  
      &lt;p&gt;Change your password here!&lt;/p
      &lt;form action="/profile/change_password/" method="post" class="form-horizontal"&gt;
          &lt;input type="hidden" name="csrfmiddlewaretoken" value="Azuwo63bFBZyum9WJSwwp8gwNcdBKw0cvURhLHoZcVDTsq7ecAJArZTYFE0dHleB"&gt;
  
          &lt;div class="col-xs-12"&gt;
  
              &lt;div id="div_id_old_password" class="form-group"&gt;
                  &lt;label for="id_old_password" class=" requiredField"&gt;
                      Old password&lt;span class="asteriskField"&gt;*&lt;/span&gt; &lt;/label&gt;
                  &lt;div class=""&gt;
                      &lt;input type="password" name="old_password" autocomplete="current-password" autofocus class="textinput textInput form-control" required id="id_old_password"&gt; &lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="div_id_new_password1" class="form-group"&gt;
                  &lt;label for="id_new_password1" class=" requiredField"&gt;
                      New password&lt;span class="asteriskField"&gt;*&lt;/span&gt; &lt;/label&gt;
                  &lt;div class=""&gt;
                      &lt;input type="password" name="new_password1" autocomplete="new-password" class="textinput textInput form-control" required id="id_new_password1"&gt; &lt;small id="hint_id_new_password1" class="form-text text-muted"&gt;&lt;ul&gt;&lt;li&gt;Your password can’t be too similar to your other personal information.&lt;/li&gt;&lt;li&gt;Your password must contain at least 8 characters.&lt;/li&gt;&lt;li&gt;Your password can’t be a commonly used password.&lt;/li&gt;&lt;li&gt;Your password can’t be entirely numeric.&lt;/li&gt;&lt;/ul&gt;&lt;/small&gt; &lt;/div&gt;
              &lt;/div&gt;
              &lt;div id="div_id_new_password2" class="form-group"&gt;
                  &lt;label for="id_new_password2" class=" requiredField"&gt;
                      New password confirmation&lt;span class="asteriskField"&gt;*&lt;/span&gt; &lt;/label&gt;
                  &lt;div class=""&gt;
                      &lt;input type="password" name="new_password2" autocomplete="new-password" class="textinput textInput form-control" required id="id_new_password2"&gt; &lt;/div&gt;
              &lt;/div&gt;
  
          &lt;/div&gt;
  
          &lt;!-- Form Buttons --&gt;
          &lt;div class="form-group form-actions"&gt;
              &lt;div class="col-xs-12 text-right"&gt;
                  &lt;button type="submit" class="btn btn-sm btn-success"&gt; Change Password&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- END Form Buttons --&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>Django Template:</p>
  
  <pre><code>&lt;div class="col-lg-4"&gt;
  &lt;div class="block"&gt;
      &lt;!-- Table Styles Title --&gt;
      &lt;div class="block-title"&gt;
          &lt;h2&gt;&lt;strong&gt;Change Password&lt;/strong&gt;&lt;/h2&gt;
      &lt;/div&gt;
  
      &lt;p&gt;Change your password here!&lt;/p&gt;
      &lt;form action="{% url 'change_password'%}" method="post" class="form-horizontal"&gt;
          {% csrf_token %}
  
          &lt;div class="col-xs-12"&gt;
  
              {{ passform|crispy }}
          &lt;/div&gt;
  
          &lt;!-- Form Buttons --&gt;
          &lt;div class="form-group form-actions"&gt;
              &lt;div class="col-xs-12 text-right"&gt;
                  &lt;button type="submit" class="btn btn-sm btn-success"&gt; Change Password&lt;/button&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- END Form Buttons --&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <p>I am not using javascript on this page it really is a basic setup for learning.</p>
  
  <p>Many thanks</p>