1

I have a cocoa application which contains a webview. Inside the webview is essentially a table of selectable information. I would like to access a user's selection inside this webview (html/js) from a button click (in the cocoa app). I assume that I could get this information by calling a javascript function inside of the web document, but I'm unsure about how to call this function from the cocoa app. Any suggestions?

Thanks!

1 Answer 1

4
[webView stringByEvaluatingJavaScriptFromString:your_javascript_here];  
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.