找回密码
 加入
搜索
查看: 2776|回复: 3

[IE类操作] INPUT类型,没有ID\name元素表单的提交

[复制链接]
发表于 2010-5-23 15:06:38 | 显示全部楼层 |阅读模式
$oInputs = _IETagNameGetCollection ($oIE, "INPUT")
For $oInput In $oInputs
if $oInput.value = "立即发布" then
       _IEAction ($oInput, "click")
EndIf
Next
;类型为INPUT的表单没有ID,name等元素的提交方法,,,,   目的是源码中的值value='立即发布"
;源码如下:
;<table width="160" border="0" cellspacing="0" cellpadding="0" class="gray12">
;             <tr>
;               <td  width="72" height="20" align="center">
;                <input type="submit" value='立即发布">
;                </td>
;                <td width="16">&nbsp;</td>
;                <td  width="72" height="20" align="center">
;                <input type="reset" value='重置'>
;                </td>
;                </tr>
;                <tr><td id="msgarea" height="70" colspan="3" style="color:red;font-size:12px"></td></tr>
;          </table>

附有ID的提交:
$oSubmit=_IEGetObjById($oForm,"postSubmit")
$oSubmit.click
发表于 2010-5-23 18:25:06 | 显示全部楼层
收藏一下。
发表于 2010-5-23 18:41:01 | 显示全部楼层
不错,学习了
发表于 2020-11-25 19:26:31 来自手机 | 显示全部楼层
现在是2020年了,时过境迁,为什么执行$oInput.value这个报错
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-19 12:43 , Processed in 0.086815 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表