Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
So basically i'm using this javascript :
JavaScript
javascript:(function(){jQuery('a.btn.primary').map(function(){this.click()})})()

It clicks on all the buttons named "btn primary" in a website page so can anyone help me to convert it into vb.
Posted
Comments
Sergey Alexandrovich Kryukov 23-Dec-14 14:06pm    
Why? why?! Javascript is standard, VBScript is not.
—SA
Sinisa Hajnal 24-Dec-14 4:28am    
And besides, you don't have the equivalent to jQuery in vbScript which means you would have to write the selector your self. Good luck with that. Steps are easy: find all buttons and performClick on them ( I think the function is even called exactly that)...now implementation of that...hell.

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