Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to close the popup on close button #53

Open
RitaPatil08 opened this issue Jan 22, 2021 · 2 comments
Open

Unable to close the popup on close button #53

RitaPatil08 opened this issue Jan 22, 2021 · 2 comments

Comments

@RitaPatil08
Copy link

when we add a cancel button no code is working to close the popup. please provide any solution on this.

@ilyabodo
Copy link

Assuming you were trying to do something like,
Response.Write("<script language='javascript'>window.close();</script>");
don't use window.close(); and instead use
parent.document.getElementsByTagName('dialog')[0].close();
as stated at the bottom of the README

@krm0503
Copy link

krm0503 commented Mar 19, 2024

parent.document.getElementsByTagName('dialog')[0].close(); does not work for me.... I get:
Cannot read properties of undefined (reading 'close')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants