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


