Can I wait for location.href to load a page?
<p>Is it possible to know when a page has loaded using location.href? My current code looks like this and I want to trigger some events to happen once my page has finished loading.  I tried using $.get but it breaks my current implementation of <a href="http://www.asual.com/jquery/address/" rel="nofollow">jquery address</a> so this won't work.</p>

<pre><code>$('.search').click(function(){
    location.href = "/search.php"; 
    // trigger event here...
    return false;
});
</code></pre>

<p>This will <strong>NOT</strong> work for my current setup:</p>

<pre><code>$.get('search.php', function() {
    alert('Page has finished loading');
});
</code></pre>

<p>Are there any other options?</p>
