Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8493819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:07:37+00:00 2026-06-10T23:07:37+00:00

I want my web application to run in a window which has no menubar,

  • 0

I want my web application to run in a window which has no menubar, addressbar etc. I have a Default.html page and in this page I click a “Run Application” button which first opens my application in another window using window.open and then closes the current window by opening “AutoClose.html” using window.open with _self parameter

Default.html

<html>
<head>
<script type="text/javascript">
    function runApp() {
        // Open my application
        window.open('Application.html', null, 'status:no;dialogHide:true;help:no;scroll:yes;center=yes;');

        // Close this window
        window.open('AutoClose.html', '_self');
    }
</script>
</head>
<body>
    <input type="button" value="Run Application" onclick="runApp();" />
</body>
</html>

AutoClose.html

<html>
<head>
<script type="text/javascript">
    window.close();
</script>
</head>
<body></body>
</html>

My application should support IE, Firefox and Chrome and my code works fine on IE and Chrome but it is unable to close the first window on Firefox because of “Scripts may not close windows that were not opened by script” warning. On Firefox it opens the AutoClose.html but window.close() call in this page just causes the “Scripts may not close windows that were not opened by script” warning and window is not closed. By the way my application window is opened without any issues (no problem about that).

It seems that using window.open() with _self parameter trick does not work for Firefox. Since my goal is to run the application in a window without menubar, addressbar etc.

  1. Is there any way for hiding addressbar, menubar without using window.open() (at least for Firefox)? Then I will not need to run window.close()
  2. Is there any setting to suppress “Scripts may not close windows that were not opened by script” warning on Firefox? An “Allow scripts to close windows that were not opened by script” setting would be great (:
  3. Is there any way to make window.close() work for “windows that were not opened by script using javascript” on Firefox?
  4. Or, is there any other suggestions (:

Thanks in advance.

UPDATE: This is a banking application and I am just a developer not the decision maker. In other words some kind of analyst wants the application work in this way. And I am not questioning it. So “the whole thing you are trying to do is completely wrong” answers will not be really helpful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T23:07:38+00:00Added an answer on June 10, 2026 at 11:07 pm

    You can’t close the current window in firefox because you didn’t open it. It doesn’t matter that you loaded AutoClose.html into it.

    But this whole business with windows is pointless. Most people have their browser set to open new windows in a new tab, and you can’t prevent the menubar etc in a tab window.

    I, personally, would be very irritated if you closed my window just because I used your application.

    It could be the only window the user has open – in which case you just closed their browser. It could be they want to press back, and closing the tab will annoy them.

    This error from firefox is correct, and if it works in Chrome that’s a serious bug and you should report it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application that I want to run some system tests on,
I use python -m SimpleHTTPServer when I want to run my web application locally,
I want to build a web application where users can register and have a
I want to do this web application I am creating in the best possible
I want to write a web application and want to use Ruby. I have
I have a web application in which I have hooked mouse up and mouse
I have my web applicatoin initialize method run based upon the page that is
I currently have a Web Application which is using it's own Permissions table which
I want to run my applet on web application, but i got some error
I want to use AntiXss library function in my web application. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.