how to access a parent window from child window after a child popup is opened? Thanks in advance
views:
37answers:
2var popup = window.open("http://www.google.com"); popup.opener == window; //alerts true
Juan Mendes
2010-09-24 19:20:27
`window.opener` a is a way to access to parent window from child. In this example you already have accesss point to the child - `popup` variable (no need to use `popup.opener`, just `popup`).
fantactuka
2010-09-24 19:22:43
+3
A:
http://www.javascriptkit.com/script/cut105.shtml
Fyi, there's generally no reason to do stuff like this for modern web devlopment. Popup is usually a bad word.