On Jun 11, 10:30 pm, "Alexander Vasilevsky" <m...@alvas.netwrote:
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