Getting Chrome to open an `.html` file in a new window

06
2013-12
  • Ram Rachum

    Every time I double-click an .html file on my computer, Chrome opens it in a new tab in the most-recently-used window. I don't like that. I want it to open a new window.

    Is there a way to do that?

  • Answers
  • bobek

    I guess you could use javascript to open the page in new window on load of the page. http://www.gtalbot.org/BugzillaSection/Bug195867GDR_WindowOpen.html

  • Sandeep Bansal

    My only thought would be to create a program to pass to google chrome with the --new-window argument, and have that program's icon set as chrome?

  • Ram Rachum

    Control Panel -> Folder Options -> File Types -> HTML -> Advanced -> open -> Edit -> Replace -- with --new-window -> Ok all the way back.

  • Zarepheth

    The advanced GUI editor for file type associations has been removed from Windows Vista and Windows 7. One needs to manually edit the registry or use 3rd party tools for such editing.

    How do I set advanced file associations in Windows 7?

    For manual registry settings, go to key: HKEY_CLASSES_ROOT\http\shell\open\command and set the (Default) value to "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --new-window "%1". You may need to refresh Windows Explorer (log-out and log-in or restart the computer).

    Force Chrome to open new pages in new window, not tab? (when opened from a program)


  • Related Question

    How can I get a new browser session when opening a new tab or window on Firefox/Chrome?
  • Mercer Traieste

    When opening new Internet Explorer window, a new browser session is issued. Therefore you can login with two different accounts on the same service (let's say gmail). The same does not apply when opening a new tab in the same window on IE.

    How can I get a new browser session when opening a new tab or window on Firefox?

    How about Google Chrome?


  • Related Answers
  • Robert Ivanc

    In Chrome you can use private browsing to achieve the same.

    Chrome - Wrench(tools) menu/open new window without history

    In Firefox you can use IE tab extension, and have another tab rendered with an IE engine to achieve the same effect.

    Here are some other options: http://www.computer-realm.net/managing-multiple-gmail-accounts-with-firefox/

  • Ivo Flipse

    It seems that there is a handy chrome extension called "Session Buddy" that does just this

    enter image description here

    Session Buddy is a flexible session management extension that allows you to easily save, edit, and restore your browser sessions.

    • Quickly save the current session from the Session Buddy interface or from the right-click menu on any web page.
    • Flexible restore options allow restore of sessions into the original set of windows, a single window, or the current window.
    • Automatic capture of your 10 most recent sessions is especially handy for recovering a session after a browser or system crash.
    • Name and edit your saved sessions with ease.
    • Populate a session from a simple list of URLs.
    • Export a session to text or CSV format (more formats in development).
    • Control the types of tabs that Session Buddy recognizes.
    • Keyboard shortcuts make working with sessions a snap.
  • random

    For Google Chrome, you can set a shortcut to open up an Incognito session via the following:

    "C:\path-to\chrome.exe" /incognito
    

    Or simply CTRL + Shift + N while using the normal state. Only difference is that when you're incognito, the cookies and history won't stick.

  • jonsca

    By creating multiple profiles in the profile manager (firefox -p from start menu) and then creating a MOZ_NO_REMOTE environment variable with a value of 1, Firefox will allow multiple sessions in multiple windows.

    I've tried it myself with Firefox 8 and it works. I have an web application that has no logout button, and before I found this I had to keep opening and closing Firefox completely to switch between accounts (admin and user for testing). This has helped greatly.

  • galacticninja

    This Firefox extension allows that:

    Multifox

    Multifox is an extension that allows Firefox to connect to websites using different user names. Simultaneously!

    For example, if you have multiple Gmail accounts, you can open them all at the same time. Each Firefox window, managed by Multifox, accesses an account without interfering each other

    Each Multifox window is flagged with a number indicating the identity profile. Logins made in windows with different numbers are isolated.

    Logins are preserved the same way they are in “regular” windows. Even if you close the window or quit Firefox.

    The identity profile of each window is preserved when Firefox restores the session.

    It can also easily switch between profiles:
    enter image description here

  • Brad

    I have made a Chrome extension that allows you to use multiple Gmail accounts (and other accounts) by launching Chrome in a new session.

    It is called New Chrome Session, and you can download it here: http://www.musatcha.com/software/NewChromeSession/

  • elijabaley

    With firefox this solution worked like a charme!!

    http://www.fusioncube.net/index.php/multiple-sessions-firefox

    It's almost the same of what proposed in the answer by "Shawn" "MOZ_NO_REMOTE environment variable with a value of 1" It adds an advice for creating multiple links on desktop for opening the different firefox sessions

  • Gowtham

    Chrome is bringing multi profile. Already available in canary builds. You can switch profile instantly.