开发者

Remove hyperlinks in uiwebview

I am trying to load a html page through UIWebview.I need to disable all the hyperlinks in webview and make its color to normal text color i.e i need to disable 开发者_开发技巧webpage detection.Is that possible

Thanks in advance


Use this UIWebView method

– stringByEvaluatingJavaScriptFromString:

To use Javascript.

Then use "document.getElementsByTagName('a')" to get an Array of elements and do want you want (change the href, change the color etc.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜