title: javascript wait until cookie equals "1"
body: <p>Is there any way in JavaScript to wait until a cookie equals "1".</p>
  
  <p>I have a cookie named <code>mim0</code> and I need my function to wait until <code>mim0</code> equals "1".</p>
  
  <p>Also <code>mim0</code> is set on a different page.</p>