4

I'd like to use Cocoa WebView for display of email messages. For security/privacy purposes I want to disable JavaScript but, incredibly enough, can't find any way to do it in the documentation.

Thanks in advance for any hints.

1 Answer 1

3

Check out WebView's -(WebPreferences *)preferences, which has a -(void)setJavascriptEnabled:(BOOL)flag option.

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.