20

I am looking to open a url (html file) without any kind of address bars, bookmarks bar so that the user just sees the application window. Is there a way to do so?

ssam
  • 229
  • 1
  • 2
  • 10
  • possible duplicate of [JavaScript open in a new window, not tab](http://stackoverflow.com/questions/726761/javascript-open-in-a-new-window-not-tab) – David Millar Jul 29 '15 at 20:55
  • You can do it on mac from the terminal for Chrome by setting up an alias `alias chrome='/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome'` and then running `chrome --app https://smile.amazon.com` – nroose Feb 23 '21 at 04:16
  • @nroose you need an `=` between `--app` and the URL, e.g., `chrome --app=https://google.com` (but, alas, that's not what the OP asked anyway...) – raner Oct 14 '21 at 00:11
  • @raner Thanks you! – nroose Oct 14 '21 at 20:52

1 Answers1

36
window.open(url,'window','toolbar=no, menubar=no, resizable=yes');

You can read about these and more of the options here.

cbender
  • 2,231
  • 1
  • 14
  • 18