Project

General

Profile

Actions

Support #959

closed

Quit application and close window

Added by Francesco Alfano over 13 years ago. Updated about 13 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.

Actions #1

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

Actions #2

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

Actions #3

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

Actions #4

Updated by Koen Deforche about 13 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF