Marc Levinson Suarez
Marc Levinson Suarez

Reputation: 13

HTML file wont open on browser when double clicked (drag and drop the file on a browser works)

This is a pretty weird problem. Not sure if this question is acceptable.

Every time i open an HTML file by double clicking it or opening it using a browser the browser home page appears not the HTML file. I've tried using different browser but all have the same results. If i try to drag and drop the HTML file in the browser it works. If I also type the file path in the URL it also works. Not sure why directly opening the HTML cause this kind of problem.

Any suggestion is appreciated

Upvotes: 1

Views: 2780

Answers (2)

kayle
kayle

Reputation: 1

same problem on a particular windows 7 system with the 3 browser I installed (Chrome, IE11 FireFox)

Reseting programs default association file with control panel or trying manual "registry tricks" doesn't solve the issue.

Any of the 3 browser still opens on their default start page, ignoring .html file the user double-clicked.

3 "work-arround" I found : 1- open the browser 2- Ctrl+O to open file with a dialog("where on hell did they put the menu bar?)

1- open the browser 2- drag'n drop the html file

1- rigth-click on html file inside explorer 2- "open with" 3- "select an other program" (mandatory step, if you try pre-selected programs, it won't works) 4- select your browser

=> I think the problem resid in the intermediate layer component(s) wired in windows root registry keys that handle html file extensions. I suspect those component(s) to strip the "%1" param of browser launch command line, but I have no time and no will to investigate such a poor Windows issue

Upvotes: 0

Mohammad Areeb Siddiqui
Mohammad Areeb Siddiqui

Reputation: 10179

Try restoring your browser settings.

Here are some links to help you with resetting the settings:

  1. Reset settings in chrome.
  2. Reset settings in internet explorer.
  3. Reset settings in opera.
  4. Reset settings in firefox.

Upvotes: 1

Related Questions