title: How to open new browser instance with specified size and position
body: <p>From the command line, or from an application, I want to open a NEW browser instance with a specified size and position, and pointed to a specific URL. I want to open a browser that acts like a dialog box. Ideally, I'd like to be able to disable "decorations" (like tabs, bookmarks, etc.). I do not want to open a new tab or pop-up window from an existing browser instance.</p>
  
  <p>I know Electron or Node Webkit do this, but I just want to open a browser as that acts as a GUI front end for whatever back end I'm building.</p>
  
  <p>I'd be happy if it would work for a specific browser; say, Chrome, or Chromium.</p>
  
  <p>So, for instance, a Python app (or C/C++, Java, etc.) could start it's web server, then open a browser of the proper size, pointed to "localhost:xxxx/whatever.html", and serve up data via AJAX.</p>
  
  <p>Kind of a universal single page app front end...</p>
  
  <p><strong><em>UPDATE (SOLUTION?)</em></strong></p>
  
  <p>The answer seems to be in two parts: 1) Opening the browser with command line switches, and 2) Resizing the window in JavaScript.</p>
  
  <p>Using chromium (or Chrome), on the command line:
  chromium-browser --new-window --app=<a href="http://192.168.1.80:8080/index.html" rel="nofollow noreferrer">http://192.168.1.80:8080/index.html</a></p>
  
  <p>Then, within your JavaScript:
  window.resizeTo(800,500)</p>
  
  <p>This will bring up a new window and resize it.</p>
  
  <p>This is great. Now, I can make an app in any language that allows me to open a web server. The user interface is done in HTML, CSS, and JavaScript. The browser is opened from within the application using the proper command line switches.</p>