I have the following javascript code that runs when a page is closed.
$(window).unload(function () {
window.opener.location.reload();
});
Is there a way to pass a paramenter to the page that calls this closed page ?
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 javascript variable window.parent should let you access to any parameters of the parent of the popup.
from inside the popup should work.
As for the parameter
will create a variable name variableName in your parent.
So inside the parent, you will be able to do
and have an alert with the content ‘Hello World!’;