Click the button on the page

  • Thread starter Alexander Vasilevsky
  • Start date
M

Munna

How programmatic to click the button on the page?

http://www.alvas.net- Audio tools for C# and VB.Net developers

Hi
I am not sure of what you wanted ..

well if you want to call the click event of a button from
javascript...

here is an example...

<body>
<form id="form1" runat="server">
<div>
<input type="button" value="I am driven by two"
id="ButtonOne" onclick="window.alert('Button Clicked')" />
<input type="button" value="I control one" id="ButtonTwo"
onclick="afunction()" />
</div>
</form>
</body>
<script language="javascript" type="text/javascript">
function afunction()
{
document.getElementById('ButtonOne').click();
}
</script>

Best of luck

Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top