Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Using InvokeScript in c# wpf to call javascript defined in HTML as a load of a file

i used this, but it doesn't work:

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
WebBrowser1.Navigate("http://m.mywebsite.com/js/gpt_logic.js")

Dim codeString As Object() = {"event.slot.i;"}
Dim kkk As String = WebBrowser1.Document.InvokeScript("eval", codeString)

Dim b As String = "sdfsdf"

End Sub
Posted
Comments
Sergey Alexandrovich Kryukov 27-Apr-15 10:33am    
It does not seem to make any sense at all. You are navigating to JS file... What you really want to achieve?
—SA

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