How do I get muliple shouldStartLoadWithRequest events
<p>I'm loading an html document in a UIWebView in an ipad application.  It has one button that executes the following javascript</p>

<pre><code>function myfunc()
{
    var i = 10;
    while(i--)
    {
        windows.location.href = i;
    }

}
</code></pre>

<p>I implenment the  protocol as follows</p>

<pre><code>-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:z(NSURLRequest *)request   navigationType:(UIWebViewNavigationType)
{
     NSLog(@"request = %@",[request description]);
}
</code></pre>

<p>When I press the button 
I only get the last value of  i come in the request variable.  It's as if the javascript method must return before the delegate method gets called.  I would expect it to get called 10 times.  Is there any way to make this happen? </p>
