niutech / showModalDialog

window.showModalDialog polyfill using a <dialog> element
https://niutech.github.io/showModalDialog/demo.html
Apache License 2.0
177 stars 88 forks source link

window.close() can't be used #20

Closed W65138497 closed 8 years ago

W65138497 commented 8 years ago

window.close() don't used

niutech commented 8 years ago

What do you mean?

W65138497 commented 8 years ago

"window.close()" cannot be used

niutech commented 8 years ago

No, but you can type parent.document.getElementsByTagName('dialog')[0].close(); to close the dialog from inside.

W65138497 commented 8 years ago

Yes, I did the same,Thanks!

soft_for_java@163.com

From: niu tech Date: 2016-08-31 06:57 To: niutech/showModalDialog CC: W65138497; Author Subject: Re: [niutech/showModalDialog] window.close() can't be used (#20) No, but you can type parent.document.getElementsByTagName('dialog')[0].close(); to close the dialog from inside. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.