title: Button trigger when they press Enter in the Page in MVC view without using Jquery
body: <p>I have a Modal in MVC view that has a button which call java script to post to controller. How I can make the Button trigger when they press Enter in the Page.
  I am not sure where in View I can call the JavaScript Function.</p>
  
  <p>Please no Jquery. I have to use only use Javascript for this purpose.</p>
  
  <p>This is My View:</p>
  
  <pre><code> @using (Html.BeginForm("forgotPassword", "Home", FormMethod.Post))
          {
              @Html.AntiForgeryToken()
              &lt;div&gt;
                  &lt;div&gt;Email Address&lt;/div&gt;
                  &lt;div&gt;&lt;input type="email" name="email" placeholder="example@email.com" id="email" class="forgot-password-textbox"&gt;&lt;/div&gt;
                  &lt;div&gt;&lt;label id="Message" class="forgot-password-error-message"&gt;&lt;/label&gt;&lt;/div&gt;
                  &lt;div&gt;&lt;input type="button" value="Submit" id="btn-reset-password" onclick="resetPasswordHandler()" class="orange-button forgot-password-button"&gt;&lt;/div&gt;
              &lt;/div&gt;
          }
  </code></pre>
  
  <p>and this is Js method:</p>
  
  <pre><code>function resetPasswordHandler() {
      //Post Data to Controller
  };
  </code></pre>