I have a UIWebView which is loading a webpage. The webpage has a div-element that I want to view. Nothing else from the webpage, just the div.
Is this possible, and if yes, how ?
Cheers,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the
stringByEvaluatingJavaScriptFromString:method of UIWebView to access page elements using JavaScript.Assuming your div has an id set, you can use the
document.getElementById("id").innerHTMLJavaScript method to access its content.