title: How to wait to read the page in JavaScript in imacros
body: <p>I use a imacros.
  However , I do not want to use the code of imacros.
  I use a javascript file.
  Is an application of the web browser using the imacros.</p>
  
  <p>I want to wait for the reading to imacros.
  I wrote the src of the following</p>
  
  <pre><code>window.console.log("start");
  window.location.href = 'https://google.com/';
  function addlisteners(){
   window.alert("read the end");
  }
  window.onload = addlisteners;
  </code></pre>
  
  <p>[Alert] will not be displayed.</p>