2

Does anyone know how to stop a popup from happening when using a webbrowser control within a WPF application ?

Welsh King
  • 3,178
  • 11
  • 38
  • 60

2 Answers2

3

Unfortunately there is no good way to archive this right now. This is a good feedback. We will add it to the list of things to provide for the WebBrowser control in the future release.

Source:

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/4d4fa88e-b8c8-4190-8153-db923ed0e24e/

John
  • 29,788
  • 18
  • 89
  • 130
Kieren Johnstone
  • 41,277
  • 16
  • 94
  • 144
1

You could simply select the WindowsFormsHost control, go inside the Constructor and set the ScriptErrorsSuppressed property to true for Blocking Pop ups .

ForceMagic
  • 6,230
  • 12
  • 66
  • 88