Web Automation - running Java Script

I am automating some daily tasks that I perform on the web.  All is well except that I need to run this one line of java code.


I paste the code above in the address bar in IE, and the Java code runs perfectly. How do I execute this java code in vb.net 2008.

I was thinking something like:

but WebBrowser1.Navigate is not the right method to fire this event.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

pandkyonAuthor Commented:
update:  I did try this -


But it didn't do anything - no errors, nor did the the webpage update with new info.      

Again, this is odd, but when I paste this code in the IE address bar, the java code executes:
pandkyonAuthor Commented:
got it to work:

it turned out to be a single quote ' double quote issue.  ','')")

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Just an FYI in case you have more questions later.  Java and Javascript are two different languages.  You'll have better luck getting answers if you put Javascript questions into the Javascript zone.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.