0

I have an application that loads a URL into an iframe's src attribute.

What I am trying to do, is pick up when the src attribute of the iframe changes (each time a user clicks a link within the iframe, I want to know what the link is that they have clicked).

I am working in vb.net with a .ascx file.

Here is the load function:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
    Dim frame1 As HtmlControl = CType(Me.FindControl("frame1"), HtmlControl)
    frame1.Attributes("src") = hyperLinkURL
End Sub

Anyone have a suggestion on how to accomplish this?

TopBanana9000
  • 818
  • 2
  • 14
  • 32
  • 1
    [This question](http://stackoverflow.com/questions/2429045/iframe-src-change-event-detection) may help you. – j.f. Jun 04 '15 at 19:59
  • Thanks, I have seen that one. I've been led to believe that it is impossible to have an iframe be accessed when its content is https, and the accessing browser is http. – TopBanana9000 Jun 05 '15 at 12:58

0 Answers0