dalekjs / dalek

[unmaintained] DalekJS Base framework
MIT License
695 stars 63 forks source link

How to close a tab? #147

Open ghguy opened 9 years ago

ghguy commented 9 years ago

We have a lot of popups, and some of them do not have a close button (:(). Is there any (easy) to close the popup?

Thanks!

asciidisco commented 9 years ago

You could use the .execute method (Docs) to run some client side JavaScript in which you have access to all the applications globals, then get the handle of the window and issue an window.close() call like described here on MDN