A Alexander Vasilevsky Jun 11, 2008 #1 How programmatic to click the button on the page? http://www.alvas.net - Audio tools for C# and VB.Net developers
How programmatic to click the button on the page? http://www.alvas.net - Audio tools for C# and VB.Net developers
M Munna Jun 11, 2008 #2 How programmatic to click the button on the page? http://www.alvas.net- Audio tools for C# and VB.Net developers Click to expand... 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
How programmatic to click the button on the page? http://www.alvas.net- Audio tools for C# and VB.Net developers Click to expand... 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