|
-
Nov 24th, 2012, 09:20 AM
#1
Thread Starter
Lively Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|