title: jQuery alert message box redirect upon click ok
body: <p>I am using ASP.NET MVC 4, so how do I redirect the message box upon click ok back to index page?</p>
  
  <p>Here's my code</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(function errMsgBox() {
      alert("Please select the Correct Activity and Task");           
      @Html.ActionLink("Back to List", "/Index") 
  });
  &lt;/script&gt; 
  </code></pre>