title: jQuery/Ajax - Redirect to another page after succes message
body: <p>I want to redirect the user after filling up the contact form and the success message appears. </p>
  
  <p>Here's the HTML code:</p>
  
  <pre><code>&lt;div id="wpm_download_1" style="display: inline;"&gt;
     The link to the file(s) has been emailed to you.
  &lt;/div&gt;
  </code></pre>
  
  <p>and here's the JavaScript I'm trying:</p>
  
  <pre><code>function() { 
        var isDownloaded = jQuery('#wpm_download_1').text(); 
          if (typeof obj.isDownloaded != 'undefined'){
              window.location = 'http://google.com';
          }
  
      }
  </code></pre>
  
  <p>Basically, I want to redirect the user when this message appears after sending form data through <code>AJAX</code>:</p>
  
  <p>The link to the file(s) has been emailed to you..</p>