使用 C# 的 Webkit 浏览器中的动态按钮单击事件



我在 C# 代码的 Webkit 浏览器中创建了一个动态按钮。我想对按钮执行按钮单击事件。如何执行按钮单击事件处理程序?

我在webkitbrowser中使用文档文本生成了按钮: mBrowser.DocumentText = "<html><head><script>" + "function test(message) { alert(message); }" + "</script></head><body><button " + "onclick="window.external.Test('called from script code')">" + "call client code from script code</button>" + "</body></html>";

现在测试功能不起作用。

请给我一个对我有帮助的例子。

不应该

window.external.test('called from script code')而不是window.external.Test('called from script code')吗?

最新更新