How to get button/tap event on UIWebview in iOS with javascript?

| | August 7, 2015

I want to get touch event of button on UIWebview in iOS with javascript. How can i get? Please help.How can i customize UIWebView content? I want to attached file with button on UIWebview.

One Response to “How to get button/tap event on UIWebview in iOS with javascript?”

  1. Tuğrul Özdemir on November 30, -0001 @ 12:00 AM

    Add any link like <a href='buttonClicked'>button</a>, and try to catch it from UIWebview’s delegate

    - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType 
    

    In my case i did it with adding link to button, i think you can do something like this with javascript

Leave a Reply