2016-11-08 49 views
0

有人可以向我解释为什么当我点击下面的元素时,表单没有发送。元素被识别,但是没有结果。 这是我感兴趣解决的代码的一部分,到此为止的一切都运行良好。Running Click事件没有结果

Set IEDoc = Internet.document 

Set collection = IEDoc.getElementsByTagName("input") ' there are actually 9 elements 

For Each Element In collection 
    If Element.Type = "image" Then ' there is only the element of interest in here 
     Element.Click 


     End If 
Next 

下面是HTML代码的从网页的示例:

html code

+0

是啊,因为代码'的JavaScript的这一部分:返回false;' – Hackerman

+0

我能以某种方式把它真正的让单击事件生效? – Seb

+0

不,你不能用VBA做...我的客人是通过JavaScript或jQuery在另一个地方处理方法...你可以发布网址,以检查代码? – Hackerman

回答