Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何阻止网络浏览器的对话框?
在对话框中。我的程序被暂停了......我怎样才能阻止对话框。我可以使用此代码,但它不起作用。
private void webExplorer_NewWindow(object sender, CancelEventArgs e) { e.Cancel = true; }
这是一个javascriptalert()调用。见这里。
alert()