Yes I did wait. I put that line in
Code:
-(void)webViewDidFinishLoad{
[webView stringByEvaluatingJavaScriptFromString:@"test();"];
}
and my javascript looks like
Code:
function testClint()
{
window.location = "http://www.google.ca";
}
And it still doesn't work