if the title is not clear
let me describe it again
if has a page a.html that has a javascript code below
window.open("http://www.baidu.com/", "_self", "");
and how can the original window and the new opened window communicate??
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The new document will have an
openerproperty that references the window from which it was opened. This will be lost if the browser is navigated to a new document.The return value of
openwill be a reference to the new window (so you’ll need to assign it to a variable).The same origin policy applies as usual.