Links to local Powerpoint or PDF files

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

I am trying to create a web page (using Frontpage) which
includes links to a number of files on a local or network
drive drive.

These files are typically powerpoint or acrobat files. When
I click on the links to these files using IE6 it opens the
files within Internet Explorer.

I'd like to launch the relevant application e.g. powerpoint
or acrobat instead of viewing them within IE6.

Is there an option in IE6 or Frontpage to launch the
external application.

Thanks
Robert
 
You will probably need a scripting solution instead of
javascript:Window.Open which is the method that IE uses.

Use the Windows Scripting Object..

Here is a code snippet for starting OE from an the IE Tools menu. (You will
have to write your own version for your needs...
Hint: Add the Windows Scripting control to your tools in Front Page and add
it to your html page. Then on the click event of the link invoke the Run
method of the scripting object)

<HTML>
<SCRIPT LANGUAGE="JavaScript">
//Run Outlook Express
//www.iecustomizer.com
try {
var parentwin = external.menuArguments;
var doc = parentwin.document;
doc.body.insertAdjacentHTML("beforeEnd", "<object id=\"objScript\" width=0
height=0 classid=\"CLSID:72C24DD5-D70A-438B-8A42-98424B88AFB8\"></object>");
doc.all.objScript.Run("MSIMN.EXE");
doc.all.objScript.outerHTML="";
}
catch(e)
{
alert(e);
}
</SCRIPT>
</HTML>
 
Back
Top