VB如何点击网页弹出提示窗口的按钮
某网页,点击按钮后会出现一个弹出窗口,在网上找,在CSDN上问,会找出其弹出窗口的文字内容了,但是其上面还有是、否或确定取消一两个按钮,我现在不会点这个按钮,大家支下招哈!
[解决办法]
帮楼主顶一下...
[解决办法]
你这其实是一个dhtml问题吧,坛子中常有类似的问题的,搜索一下吧。试试
click Method
--------------------------------------------
Simulates a click by causing the onclick event to fire.
Syntax
object.click()
- HTML code
<HTML><HEAD><SCRIPT>function simclick1(){chk1.focus(); //focus is explicitly setchk1.click();}function simclick2(){chk1.click();}</SCRIPT><SCRIPT FOR=chk1 EVENT=onfocus>alert("checkbox is in focus!");</SCRIPT></HEAD><BODY><P STYLE="font-family:sans-serif;font-weight:bold">DEMO: USING CLICK METHOD DOES NOT SET FOCUS<P><UL STYLE="color:blue;font-family:sans-serif;font-weight:bold"><LI>Both these buttons apply the click method to the checkbox. </LI><LI>An alert has been set to fire when the checkbox is put into focus. </UL></PLI><INPUT Type="CHECKBOX" id=chk1></INPUT><br><BUTTON onclick="simclick1()">This button <B>applies the focus method</B> to checkbox</BUTTON><br><BUTTON onclick="simclick2()">This button <B>does not apply the focus method</B> to checkbox</BUTTON><br></BODY></HTML>