Javascript in C#

pavan_buzz

Junior Member
Joined
Jul 25, 2009
Messages
169
Reaction score
118
I am doing a bot, which requires Javascript to be executed on C#.Not ASP.NET . I need to use it in normal windows form of c#. Please help me out... i need a solution to execute Javascripts... Hoping for BHW members to help me out... :)
 
Use the browser component control. It uses IE as a rendering engine and can execute javascript.
 
Correct, you can just use browser control. Why do you need to execute javascript? Unless the javascript is on the page you can use the mshtml component to do "javascript type things"
 
hey guys.. i see that many sites use javascript to set cookies. But webbrowser component is pretty slow.. So in order to make things spice up.. i do this.. can i write a script on the fly and execute it with webbrowser component???
 
All you need to do is make a web browser component and then make it

Code:
webBrowser1.Navigate("javascript:JAVA SCRIPT CODE HERE");

or something like that should work.
 
Back
Top