I want to make single pop up window in javascript. No matter how many times the button is pressed from parent page, only the single pop up is activated.
How can I do that in Javascript?
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
window.openmethod takes 3 parameters.As long as the Name portion is the same when you open the popup, the same window will be reused.
Here’s another idea.
Why not create an inline page popup (div) with an iFrame inside? Fancybox does this pretty easily along with a number of other frameworks. Pretty easy to write with custom Javascript as well.
This way your users will never navigate from your window and only that popup will ever live from clicking the button.