open java popup window in same browser control window
i tried this and it doesnt work:
Private Sub WebBrowser2_NewWindow(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles WebBrowser2.NewWindow
Dim myElement As HtmlElement = WebBrowser2.Document.ActiveElement
Dim target As String = myElement.GetAttribute("href")
WebBrowser2.Navigate(target)
Console.WriteLine(target)
e.Cancel = True
End Sub
The site is:
http://www.rafnet.co.uk/BNAR/chat.html
I press the submit button and it opens it in a new window
Re: open java popup window in same browser control window
There are ways to do this but I'm afraid that every one I tried on this particular site resulted in a script error so it looks like this may be one for the grinning and bearing of.