0 Replies - 183 Views - Last Post: 23 June 2012 - 03:06 PM Rate Topic: -----

#1 Korlando  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 15
  • Joined: 09-June 12

[Question]Own Browser: How to open pop-ups on a new window

Posted 23 June 2012 - 03:06 PM

When I click on flash advertisments, links etc. the url opens in a new window(an IE window). I made those links to open on a new form of my own browser. I almost done this but I have the following promblems: When I click on javascripts or flash advertisments a new window appears(on my browser) with the url "about:blank". It doesn't open the url!!! Sometimes when I click links I have the same promblem. A new window appears with a wrong url "about:blank".
My code:
Private Sub wb_NewWindow1(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles wb.NewWindow
            Dim thiselement As HtmlElement = wb.document.ActiveElement
            Dim targeturl As String = thiselement.GetAttribute("href")

            e.Cancel = True
            Dim view As search = New search
            view.wb.Navigate(targeturl)
            view.Show()
        End If
    End Sub

Where wb = web browser.
Where search = form

Is This A Good Question/Topic? 0
  • +

Page 1 of 1