VZ.
VZ.

Reputation: 22688

How to disable JavaScript in Cocoa WebView?

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.

Upvotes: 4

Views: 1449

Answers (1)

Vervious
Vervious

Reputation: 5569

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

Upvotes: 3

Related Questions