How can I call the parent-window jquery function with variable from popup window javascript? Any simple examples that I can look at?
How can I call the parent-window jquery function with variable from popup window javascript?
Share
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.
opener is a reference to the
windowobject of the opening document. I.e. you have access to the global javascript namespace of the opening window.e.g.
if you press “propagate url” in a (in any) popup window the function call will bubble up to the first non-popup window (having opener=null).
edit: keep in mind that security restrictions (like cross domain checks) implemented in the browser apply.
edit2: example with history.go(0)