How to check location.href is completed?
<p>I want open a window and then does something after it finishes loading, is there an easy way to do this?</p>

<p>my current code is something like:</p>

<pre><code>cur_window = window.open( 'http://www.google.com' )
// does something when cur_window finishes loading
</code></pre>

<p>thanks</p>
