Project

General

Profile

Actions

Support #959

closed
FA KD

Quit application and close window

Support #959: Quit application and close window

Added by Francesco Alfano about 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
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.

KD Updated by Koen Deforche about 15 years ago Actions #1

  • 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

FA Updated by Francesco Alfano about 15 years ago Actions #2

Thanks,
it works on explorer, but doesn't close in firefox.
How can i do the same on firefox?

Regards, Francesco

FA Updated by Francesco Alfano about 15 years ago Actions #3

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

KD Updated by Koen Deforche almost 15 years ago Actions #4

  • Status changed from Feedback to Closed
Actions

Also available in: PDF Atom