【发布时间】:2017-10-15 01:29:37
【问题描述】:
我可以在 c# 代码中捕获 html 中发生的 JavaScript 事件吗?
考虑以下示例,我有一个带有按钮的 html,在我的应用程序中,我通过 WebView 查看它,并且当单击该特定按钮时,我有一个要执行的 c# 代码。
如何在 c# 代码中捕捉到按钮的点击?
<html>
<head>
.......
</head>
<body>
........
<button id="idOfButton" name="NameOfButton"></button>
........
</body>
</html>
【问题讨论】: