Results 1 to 5 of 5

Thread: I am using ext-gwt and I want to close my browser window on ext-gwt button click

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    58
    Vote Rating
    0
      0  

    Post Answered: I am using ext-gwt and I want to close my browser window on ext-gwt button click

    how I can achive that in ext-gwt, please help

  2. FF does not allow scripts to close the window.
    If you want to bypass this default setting, type about:config in ff.
    Then make sure the "dom.allow_scripts_to_close_windows" property is set to true

  3. #2
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    877
    Answers
    10
    Vote Rating
    1
      0  

    Default

    Hi.
    You cannot close the browser. You can close the window if your application is running on a popup.
    Try doing it via jsni:

    Code:
    private static native void closeWindow() /*-{
            $wnd.close();
        }-*/;

  4. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    58
    Vote Rating
    0
      0  

    Post Thanks for reply, it is working fine in IE, but not working in FF 3.5.3

    Thanks for reply, it is working fine in IE, but not working in FF 3.5.3

    what i can do for ff

    Thanks
    vijay patil

  5. #4
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    877
    Answers
    10
    Vote Rating
    1
      0  

    Default

    FF does not allow scripts to close the window.
    If you want to bypass this default setting, type about:config in ff.
    Then make sure the "dom.allow_scripts_to_close_windows" property is set to true

  6. #5
    Sencha User
    Join Date
    Sep 2010
    Posts
    58
    Vote Rating
    0
      0  

    Default Thanks, it's working for me

    Thanks, it's working for me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •