title: Can I make a window close in Google Chrome using javascript when launched from a desktop icon?
body: <p>I've got a web application that I'm working on. What I want to happen is this: Form pops up on the computer at a certain time, User submits the form, the form processes, the page closes.</p>
  
  <p>The part I have trouble with is the page closing part. I've tried running without it, and when I check the machine there will be 20 instances of the form open - the users just are not closing it on their own for whatever reason despite being told to do so.</p>
  
  <p>I found that if I run Chrome in kiosk mode, then I can use a function like this to close the window:</p>
  
  <pre><code>function CloseWindow() {
      window.open('', '_self', '');
      window.close();
  }
  </code></pre>
  
  <p>...despite the fact that the window was not opened via javascript. The problem is though that the kiosk mode comes up full screen and this is frustrating to the users since it effectively locks them out from doing other things.</p>
  
  <p>If I open Chrome in app mode or any other mode, this code doesn't work. So I guess I've got a 3 part question:</p>
  
  <p>Can I run Chrome kiosk mode in anything other than full screen? If not, is there someway of getting similar code to function in app mode? If not that... any other ideas for getting it to work the way that I want?</p>
  
  <p>Thanks!</p>