How can I redirect from within a frame to a full web page?
You can call Response.Redirect() from within an IFrame and have the target page "bust out of the frame" by adding the following code to the target page's <head> element:
<head>
<script type=" text/javascript" >
function bustOut()
{
if (window.top != window.self)
{
window.top.location=" TargetPage.aspx"
}
}
</script>
</head>
And adding the folowing code in the form's body tag:
<body onload=" bustOut()" ></body>© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 09/23/09
Comment or report problem with topic
