Targeting a file

liunx

Guest
How do I open a file when selecting on a link. For example, I have the following:<br />
<br />
<A target=window_name href=http://www.htmlforums.com/archive/index.php/""><br />
View legal description<br />
</A><br />
<br />
What I would like to do is when the user clicks on the link above, it would open up a new window. This window would open up MS word and display the file selected. <br />
<br />
I don't know if this makes much sense. In a nutshell, if I know the file path (well, the user will pick a file path), I want the link to somehow reference this file path and open up the word document.<br />
<br />
Thanks!<!--content-->a link to open a new window:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"page_name.html" target="_blank">Get the file!</a><br />
<br />
to open a file:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"file_name.doc" target="_blank">Get the file!</a><br />
This will ask the visitor to d/l the file, and then it will open in MS Word!<!--content-->One way I have done it in the past is:<br />
<br />
<a href=http://www.htmlforums.com/archive/index.php/"filename.doc" target="_blank">File Name</a><br />
<br />
This will open the word document in a browser window, but won't open the Word application itself.<!--content-->Duh. Now I feel like a idiot. I didn't even bother to try that because I figured it wouldn't work.<br />
<br />
I guess the easiest solution is really sometimes the best.<br />
<br />
Thanks!<!--content-->Originally posted by ecojohnson <br />
Duh. Now I feel like a idiot. I didn't even bother to try that because I figured it wouldn't work.<br />
<br />
I guess the easiest solution is really sometimes the best.<br />
<br />
Thanks! <br />
<br />
As my English teacher always says, "The only dumb question is the one that isn't asked." :)<!--content-->
 
Back
Top