Results 1 to 2 of 2

Thread: open java popup window in same browser control window

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2009
    Posts
    113

    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

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width