Search code examples
javascripthtmlfirefoxwinapihref

Browser opening text/xml in external program


Is there a smart way to - from a browser - open hrefs to text files and XML files in an external program. My target platform is Win32 so preferably I'd have the files open in the default editor for it (as set in explorer.exe).

The solution must work in Firefox. It's a bonus if it works in IE and Crome.

My html is generated from a local developer database for files on disk. I.e. hrefs look like this: file://c:/a/b/c.ext. Currently, Firefox and IE show their built-in XML viewer, and god knows what Chrome is showing (looks like random XML excerpts to me).

I don't know if this is of any relevance, but all hrefs are of type <map><area href/></map> (over an image) and not just simple <a href/>s.

Edit: is it possible in Javascript, anyone?


Solution

  • It does not seem possible to solve (easily). I give up.