This may not belong here but I wanted to share....
This is a much cleaner way to inject larger javascript code into the browser. It makes it easier to edit the javascript and manage the code.
Quote:
'Usage:
WebView1.EvalScript(readJSFile("jsTextFile.js"))
Private Function readJSFile(ByVal fileName As String) As String
readJSFile = Nothing
If File.Exists(My.Application.Info.DirectoryPath & "\" & fileName) Then
readJSFile = vbCrLf
For Each line As String In File.ReadLines(My.Application.Info.DirectoryPath & "\" & fileName)
readJSFile = readJSFile & line & vbCrLf
Next
End If
End Function