Monday, October 13, 2008

Redirect Parent page from IFrame

That is a common issue while working with IFrames. One solution to this problem can be Javascript.

Add a Javascript like below:

if (parent.document) { 
parent.document.location.href='http://www.google.com';
 }

In  ASP .NET,  register above javascript statement using 
Page.RegisterStartupScript( ) method


No comments:

bdnews24.com | Bangla Version

The Daily Star