IE7 Right-click menu link forward


Recommended Posts

Mucking around with the right click menu through windows registry to open a link I right-click on and select in a proxy server.

Basically, the /MenuExt key of internet explorer in the registry allows for these kinds of links/functions. I have a key pointing to a javascript file that attempts to open a new window, with the url formatted for the proxy server.

The code is:

<script LANGUAGE="JavaScript" defer>
  //Get url
  var url = external.menuArguments.document.location.href.URL;



  var regex = /^http:\/\//;

  if(! regex.test(url)) {
	url = "http://" + url;
  }

array1 = url.split("//");
var url=array1[1];

  // 1st open a new, 2nd work in the current. 
  open(window.location.href='proxy '+url);

</SCRIPT>

As you can see, it opens a new window with the part of the url after the "http://" and uses an IE quicksearch (proxy) to go to my server. However, I get a "Permission Denied" error when I run it. Internet Explorer doesn't like that I am attempting to get the url of another browser window. Other programs that add themselves to the right-click menu to do this sort of thing use vb scripts or monitoring programs, both of which I am unfamiliar with. Any way to do this? Basically right click a link and open that link in a new window, formatted slightly.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.