简体   繁体   English

如何使用javascript自动单击dhtml模态对话框窗口按钮?

[英]how to auto click dhtml modal dialog window button using javascript?

iframe中有一个dhtml模态对话框,现在有一个Button我想使用JavaScriptasp.net自动单击该按钮

If the "dhtml modal dialog box" is a standard browser alert initiated by JavaScript, then you can't programmatically click it using JavaScript. 如果“ dhtml模态对话框”是由JavaScript发起的标准浏览器警报,则您无法使用JavaScript以编程方式单击它。

Your best bet would be to use a custom dialog box. 最好的选择是使用自定义对话框。

Related Articles: 相关文章:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在按钮单击时关闭简单的模态对话框? - How to close a simple modal dialog on a button click? ASP.net按钮点击不使用Jquery模态对话框触发 - ASP.net Button on click not firing using Jquery Modal Dialog 回发后如何执行按钮单击以打开模式窗口 - How to perform a button click after a postback to open a modal window 在 Unity 中单击按钮后如何显示模态窗口? - How to show a modal window after button click in Unity? 具有自动关闭功能的HTML Javascript模式弹出窗口 - HTML Javascript Modal Popup Window with Auto Close 如何处理是否单击按钮时使用Javascript弹出的对话框 - How to handle Yes No dialog that was pop-up using Javascript on button click 模态对话框仅通过单击一个按钮即可加载,而不管类似按钮的数量如何-如何解决? - Modal dialog loads just from the click on one button regardless of the number of similar buttons - how to fix it? 如何通过Selenium和C#根据HTML在模态对话框中单击文本为“关闭”的按钮 - How to click on the button with text as Close within a modal dialog box as per the html through Selenium and C# 如何使用 gridview 在 aspx 按钮单击和加载数据时弹出模式? - How to popup a modal on aspx button click and load data using gridview? 显示模态对话框窗口 - Show modal dialog window
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM