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

1

1 Answer 1

0

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.