A day with .Net

My day to day experince in .net

Opening a page in a pop up’s parent window or in it’s grand parent window

Posted by vivekcek on July 22, 2009

Today i faced a problem,The problem was that open a link in a pop up windows parent window
this can be done the following javascript functions

In parent


window.opener.parent.location ='../../folder/folder/somepage.aspx?tId='+TrId;

In grand parent

window.opener.opener.parent.location ='../../folder/folder/somepage.aspx?tId='+TrId;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s