title: Set timeout on jQuery .load
body: <p>I want to have a timeout after 5 seconds and then display "Unable to fetch page". But im not sure how to go about it... Heres what I got so far...</p>
  
  <pre><code>$(document).ready(function() {
                      $('#content').html('&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;img src="load.gif" border="0"&gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;Generating Link...&lt;/strong&gt;');
                  $("#content").load("ajax.php");
  })
  </code></pre>