Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I need simulate a click on this button, can you help me?

HTML
<a class="cuba" onclick="showWindow('register', this.href)" href="member.php?mod=register">Register</a>
Posted
Updated 15-Aug-11 4:02am
v2
Comments
edumaite 14-Aug-11 12:54pm    
please help me
Sergey Alexandrovich Kryukov 14-Aug-11 17:13pm    
How is that related to "VB10"? VB.NET?
--SA

The attribute "class" here has nothing to do with click handlers; it points to the CSS (style sheet) class name. The whole question seemingly has nothing to do with VB (in the sense on can imply by "VB10", it could be VBScript, in principle), rather to Javascript. There is no indication of ASP.NET as well.

I have a feeling that you are confusing about roles of client and server sides in Web development and the technologies involved.

—SA
 
Share this answer
 
The piece of code that you have shown runs a Javascript function called showWindow().

I would read up on the differences between client side and server side code, this will show you what languages are used on each.
 
Share this answer
 
HTML
<a class="cuba" id="myButton" onclick="showWindow('register', this.href)" href="member.php?mod=register">Register</a>

<script language="Javascript">
// Trigger the onclick event from client side code.
var elm = document.getElementById("myButton");
if (typeof elm.onclick == "function") {
    elm.onclick.apply(elm);
}
</script>
 
Share this answer
 
Comments
edumaite 15-Aug-11 22:21pm    
Thanks you helping a lot

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900