I need to use web browser in my application as it keeps repetitive tasks from employees, but there is a problem with javascript that opens a new window in IE after clicking
Why such a complex answer Guys? Abatischev, I'd be curious to see into your brain, should be interesting...
Just try this:
Private Sub WB1_NewWindow(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WB1.NewWindow
newUrl = WB1.Url.ToString
e.Cancel = True
WB1.Navigate(newUrl)
End Sub
Now you may change the second line into WB2 or any other WebBrowser component in any of your OWN forms.