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

New Post: alert does not work ?

$
0
0
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:
engine.Script.alert = new Action<string>(msg => MessageBox.Show(msg));
engine.Execute("alert('Hello, world!')");
Good luck!

Viewing all articles
Browse latest Browse all 2297

Latest Images

Trending Articles





Latest Images