0

I am displaying the WebPage in my UIWebView. I want to detect a button click on that page.

code for that button in HTML file with Java Script is as follow:

document.getElementById("fileUploadSection").innerHTML = '<button type="button" class="btn btn-primary btn-block findJobsButton" id="txtUploadResume" onclick="validate();ok.performClick();"> </button>';

Problem: How can I detect the button is clicked & my native method is called?

Thanks in advance

Rohan
  • 2,939
  • 5
  • 36
  • 65
user2526811
  • 1,233
  • 4
  • 20
  • 54

1 Answers1

0

Take a look at DJJavaInsertion for a clever and easy way to let JavaScript run native methods.

Darren
  • 10,182
  • 20
  • 95
  • 162