Execute javascript in a .js with .net Webbrowser

byle

Member
Joined
Dec 11, 2006
Messages
7
Programming Experience
1-3
Hi!
I'm creating a spider in wich I pretend to execute javascript functions from a page. I'm using the .net webbrowser to navigate through the page. The case is that when I fins a javascript function and I try to invoke it it does not work as the implementation of this function is set in a .js that I have previously downloaded.
Is there anyway to execute any function once you have that .js in your hard drive? For example any link that instead of redirectind directly to the next page calls a javascript to do that
Does anyone know a way to do it??

THANKYOU!!!!
 
You mean you want to inject your own Javascript into any loaded webpage (in webbrowser control on form), and you want to execute this script on that page?
 
Back
Top