Quantcast
Channel: ClearScript
Viewing all articles
Browse latest Browse all 2297

New Post: alert does not work ?

0
0
Hi again,

Sure, you can do it this way:
engine.AddHostObject("alert", new Action<string>(msg => MessageBox.Show(msg)));
engine.Execute("alert('Hello, world!')");
Cheers!

Viewing all articles
Browse latest Browse all 2297