我可以在带有 URL 的网页上自动按下按钮吗? [英] Can I auto-press a button on a webpage with a URL?
本文介绍了我可以在带有 URL 的网页上自动按下按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望能够在我的网页上自动点击这个表单按钮:
I want to be able to auto click this form button on my webpage:
<input value="Approve" class="btn" title="Approve" name="apv" type="submit">
通过在页面加载之前修改页面的 URL.这可能吗?
by modifying the Url to the page before it loads. Is this possible?
推荐答案
如果
method
-attribute 是 GET
它简单.只需使用以下内容:
If the <form>
method
-attribute is GET
it is easy. Just use something like:
http://www.yourdomain.com/page?apv=Approve
如果使用的'方法'是别的东西,比如POST
.仅提供特殊"网址是不可能的.
If the used 'method' is something else, like POST
. It is not possible by solely providing a 'special' URL.
这篇关于我可以在带有 URL 的网页上自动按下按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文