It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Opener Name

Opener Name

Postby parthigct on Tue Sep 07, 2010 5:50 pm

Dear All,
There are two aspx pages. Inside first page javascript function OpenLink ,i m opening the second page using window.open(url,Name,features).
Inside the second page Javascript function SelectText , I am getting the element of first page Opener.document.getElementById('HtextBox').

The issue is that i want to implement some actions if the the first aspx page opens the second. If any other page opens the second page ,i want to implement some other action inside the second page java script function SelectText.

i tried

//second page java script

function selecttext
{
.
if(Opener.Location = "Web.Firstaspx")
{
.
}
else
{
.
}
}

since i have to give the whole path in the above condition which may vary if i deploy it in server. i want to knw whether (or HOW) i can give a name to my first page (opener) so that i can change my IF condition to

if(opener.name = "FirstAspx")
{
}
else
{
}

Thanks and Regards,
Parthiban S
parthigct
 
Posts: 1
Joined: Tue Sep 07, 2010 5:46 pm

Who is online

Users browsing this forum: No registered users and 7 guests