Hello Sybaris,
The alert method is part of the Web API, which is usually provided by web browsers and is not part of the JavaScript standard. However, you can easily expose a similar method based on WPF:
Good luck!
The alert method is part of the Web API, which is usually provided by web browsers and is not part of the JavaScript standard. However, you can easily expose a similar method based on WPF:
engine.Script.alert = new Action<string>(msg => MessageBox.Show(msg)); engine.Execute("alert('Hello, world!')");