title: AJAX receive html file
body: <p>I am currently writing a registration form. After the registration is successful, my server sends back an HTML file and I want AJAX to go to the login HTML. </p>
  
  <p>Can someone help me plz with AJAX and JQUERY?</p>
  
  <p>This is what i have:</p>
  
  <pre><code>      $.ajax({
                                        type: 'POST',
                                        url: "http://localhost:3000/UserRegistration",
  
                                        dataType: 'text',
                                        data: FormData,
                                        success: function (response)  
                                        {}
  </code></pre>
  
  <p>Also what is dataType? Is that the dataTYpe I am sending to the url or receiiving. Because I am sending a JSON file and receiving an HTML?</p>
  
  <p>Do you also know how I can run a script on the new loaded page? For exampl I want to do load the login page, and append a "TickMark" image to the page: $ApprovedTick.insertAfter( 'header' ); but this wont work on the new page</p>