Create your own items in IE's Context-Menu

Jake Howlett, 1 November 2000

Category: Miscellaneous; Keywords: Debug Menu Hidden

I don't know about you, but one of the things I do all the time, when developing web apps, is "Right Click - View Source" to show the HTML behind a page. Not only do I use this to see how other people do stuff, but also to "debug" my own code. This method has its limitations though and it would be nice to create your own debugging menu commands wouldn't it. Well now you can, if you happen to use Internet Explorer 4+

Look at the picture below. The menu shows all the usual options plus a few others.

Image

What do these new commands do:


I've used these three purely as examples, yet the possibilities are almost endless. If you want to use these or just see how it is done then:

  1. Download this zip file
  2. Close all you browser sessions
  3. Extract all files to a folder called "C:\IE Commands"
  4. Run the .reg file that should be in the new directory (if you extracted to a different directory then you need to edit the file paths in the .reg file first).
  5. Restart the browser, your new commands should be available. Et voila.

For the technical "in and outs" of how this works read this Microsoft page



Note: There are optional DWORD values you can apply to the new registry Keys that tells the command which Context-Menus to appear in, ie when the user right-clicks images, text, anchors etc.

Running the commands.reg file adds a set of Keys to the following branch in the Registry:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt]