21

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?

4
  • possible duplicate of JavaScript open in a new window, not tab Jul 29, 2015 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, 2021 at 4: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, 2021 at 0:11
  • @raner Thanks you!
    – nroose
    Oct 14, 2021 at 20:52

1 Answer 1

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

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

3
  • how compatible is this with different browsers? Aug 23, 2019 at 9:21
  • 1
    @Dheeraj the linked page in the answer says it’s compatible with all of the major browsers
    – cbender
    Aug 23, 2019 at 11:32
  • This has the address bar. (except Opera)
    – nroose
    Feb 23, 2021 at 4:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.