title: How to delay calling of javascript function?
body: <p>I'm new to JavaScript.</p>
  
  <p>I would like to call JavaScript / jQuery function after the page load in aspx page.</p>
  
  <p>I tried using  <code>&lt;form onload="function()"&gt;</code> and <code>window.load = function(){}</code>, but the JavaScript is still trigger before some of the content fully loaded. </p>
  
  <p>Is it possible to call during <code>Page_PreRender</code> in aspx page and not in code behind, so that I can delay the JavaScript function ?</p>
  
  <p>I tried <code>setTimeout("function()",5000)</code> to solve the problem.</p>
  
  <p>However <code>setTimeout()</code> seem like is not compatible with some browser, e.g: caused looping in Google Chrome.</p>