Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Window communication when they are at diff domain

Status
Not open for further replies.

madura12

Programmer
Dec 15, 2000
10
0
0
US
I have parent window in one domain say yahoo.com,
from there i open child window say it is in hotmail.com.
From the child window i want to access the hidden varaible in the parent window.
I was not able to access using "opner.window.document ...",
may be due to diff. domain.
I think i have to change the domain using "document.domain"
I would like hear comments, if any has done it before.
 
thanx for the reply !
the synatx for accessing the opner's hidden variable is
"opener.window.document.frmSearch.txthdn1.value" , i know that.
But the question is, when the parent and child are in different domain the adove syantx is not working.

I came to know that i have to change the domain of child to point parent, then i can access the parent's varaibles.
But that is not working.
 
i dont think its possible... cross-domain scripting is a security risk, and is restricted, but, if you find a way... please... post it here.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top