All previous answers mention HKEY_CLASSES_ROOT
, but how do we use it? Where can we use it? It is not mentioned.
But now I have the solution. Please follow the below steps.
- Open a new Notepad document and paste the below code in Notepad
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\iehttp]
@="URL:Open with IE Protocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\iehttp\shell]
[HKEY_CLASSES_ROOT\iehttp\shell\open]
[HKEY_CLASSES_ROOT\iehttp\shell\open\command]
@="cmd /V /C \"set URL=%1&& set URL=!URL:iehttp=http!&&cmd /c \"\"C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe\"\" !URL!\""
- Ctrl + S
- Give a name like:
iphttp.reg
+ save on the desktop
- After that, double-click on
iphttp.reg
file from the desktop, and for the first popup, click on Yes
Done from the Registry side, there isn't any need to refresh or restart the computer. It will give two links for testing:
<a href="http://www.google.com" target="_blank">Open Same Browser</a>
<a href="iehttp://www.google.com">Open With IE</a>
That's it. It is working fine now.
Limitation: from jQuery, JavaScript it's not working as per my understanding.