title: prevent all MouseClick event until page load
body: <p>I have a situation in which i have to prevent all <strong>MouseClick</strong> events until the page loads. </p>
  
  <p>i have 1 javascript function defined on page load like</p>
  
  <pre><code>onload="init();"
  </code></pre>
  
  <p>Now in function init(), we are showing tree and select a particular node of it.</p>
  
  <pre><code>function init() {
          ExpandAncestors(node);
          ExpandNode(node);
          setTimeout("treeScrollToView()", 1000);
  }
  </code></pre>
  
  <p>Now i want to prevent all the mouse click event on tree/page until whole tree is not fully shown. </p>
  
  <p>I have searched through some of the posts related to my question but that uses <strong>event.preventDefault()</strong> but i dont have <strong>Event</strong> object here. </p>
  
  <p>Any help is greatly appreciated.</p>