模拟点击按钮? [英] Simulating click on button ?
本文介绍了模拟点击按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<div class="buttons">
<div class="post-icon">
<div class="reply-icon">
<a title="Publicar una respuesta" href="mysite.com">
<span></span>
Publicar una respuesta
</a>
</div>
</div></div>
我自动点击跟随按钮:
I make click automatically on the follow button :
<div class="post-icon">
<div class="reply-icon"></div></div>
我有一个论坛,我想自动登录并发表评论,您能在Visual Basic 2010中为我提供帮助吗?
I have a forum and I want post and reply with my login automatically, can you help me in visual basic 2010?
推荐答案
您的问题不是很清楚,我该如何解决?了解您是否希望能够单击div并执行某些操作,就像单击按钮一样.
请参见下面的代码;
Your Question is not very clear, how I understand you is you want to be able to click the div and do something as if you clicked a button.
See the code below;
<html>
<head>
<title>Hello World! Sample Page</title>
<script type="text/javascript">
function divClick() {
alert("Hello World!");
}
</script>
</head>
<body>
<div onclick="divClick()">Please Click Me!</div>
</body>
</html>
这篇关于模拟点击按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文