title: Submitting Form automatically
body: <pre><code>@using (Html.BeginForm("ExternalLoginConfirmation", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form"}))
  {
      @Html.AntiForgeryToken()
  
      &lt;br/&gt;
      &lt;div class="form-group"&gt;
          &lt;div class="col-md-10"&gt;
              @Html.HiddenFor(m =&gt; m.Email, new {@class = "form-control"})
              @Html.HiddenFor(m =&gt; m.FirstName, new {@class = "form-control"})
              @Html.HiddenFor(m =&gt; m.LastName, new {@class = "form-control"})
              &lt;input type="submit" class="btn btn-default btn-lg btn-success" value="Forsæt"/&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  }
  
  @section Scripts {
      @Scripts.Render("~/bundles/jqueryval")
      &lt;script&gt;
          $(".form-horizontal").submit();
  &lt;/script&gt;
  }
  </code></pre>
  
  <p>Here is my form with the script I attempted. What I want is as soon as this view is being called and the form should be submitted automatically on page load. Is there a way to make it like this? Or even not go to the page and submit the form?</p>