Forum Moderators: open
There are other frames on the page but this is the 1 that I need to bust out of.
divDetailIframe.location.href = "/dnfserver/liners.aspx?q=liner&g=" + lid + "&t=" + t;
' Code that is ueed on the page I need to make visible in the middle of the page not the complete page.
Dim sb1 As New System.Text.StringBuilder
sb1.Append("<script language=""JavaScript"">" & Environment.NewLine)
sb1.Append("<!--" & Environment.NewLine)
sb1.Append("if (parent.frames.length > 0) parent.location.href = self.document.location;" & Environment.NewLine)
sb1.Append("-->" & Environment.NewLine)
sb1.Append("</script>" & Environment.NewLine)
lblFrameBuster.Text = sb1.ToString()
Any ideas how to do this? I thought this would work. middle.location.href = self.document.location;;