private void button_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog( ); bool? result = ofd.ShowDialog( ); if (result == true) { string js = File.ReadAllText(ofd.FileName); BrowserCore.RunJavaSript(js); } }
private void button_Click(object sender, RoutedEventArgs e) { BrowserCore.RunJavaSript(JsCode.Text); }