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,919
  • 5
  • 35
  • 65
user2526811
  • 1,193
  • 4
  • 19
  • 53

1 Answers1

0

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

Darren
  • 9,945
  • 19
  • 86
  • 151