How to get informed if your PopUp window was blocked BY pop up blocker? (CODE EXAMPLE NEEDED)
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.
With
you open a new popup and as
URLyou put some html page. In that popup’ed page you write someJSin which you can usewindow.openervariable so you can has an access to allJSfrom your main page.Then you can in popuped page set some flag – for example:
index.htmlpopup.htmlI’ll do this that way.
Edit
And here is another way using
PHP:In your
popup.phpyou can set some flag in sessionAnd in
index.phpyou should write something toAJAXrequesting to ana action which will returns you a value from$_SESSION.