Is there a way for my UIWebViewDelegate to see what the rel attribute of a clicked < a> element is?
A:
When the page loads (using webViewDidFinishLoad:), you could add some javascript to the page (using stringByEvaluatingJavaScriptFromString:) that stores the rel attribute of a clicked element in a variable, then in webView:shouldStartLoadWithRequest:navigationType: you can execute a script to get the contents of the variable.
Jason
2010-06-01 09:32:28