Actions
Support #959
closedQuit application and close window
Start date:
08/17/2011
Due date:
% Done:
0%
Estimated time:
Description
Hi,
How can i close the browser tab when the application is closed using WApplication::quit.
Thanks, Francesco.
Updated by Koen Deforche over 13 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Hey,
Could you try the following ?
app->quit();
app->doJavaScript("window.open('','_parent',''); window.close();");
Regards,
koen
Updated by Francesco Alfano over 13 years ago
Thanks,
it works on explorer, but doesn't close in firefox.
How can i do the same on firefox?
Regards, Francesco
Updated by Francesco Alfano over 13 years ago
I've tried this:
wApp->doJavaScript("window.open('','_self',''); window.close(); document.location.href=\"about:blank\";");
and it seems to work.
Thanks for the idea, Francesco
Updated by Koen Deforche about 13 years ago
- Status changed from Feedback to Closed
Actions