I want to append querystring to parent page when we close the popup window using javascript.
I am using below code but its not working :
parent.location.href =parent.location.href+"?PostComments=true";
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.
This seems to work for me! A bit too much to add to a comment, so I’ll post it as an answer:
Note that once you change the querystring the page reloads, and the popup is opened again etc. in a loop, but I’m assuming you’re opening the popup on some event and not on page load, so that should’nt be an issue really.