HighDots Forums  

Hyperlink to open document

alt.html.writers alt.html.writers


Discuss Hyperlink to open document in the alt.html.writers forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ravi Sandhu
 
Posts: n/a

Default Hyperlink to open document - 01-01-2004 , 01:40 PM






Hi guys

I am able to place a link in html to a Word or Excel document.

That hyperlink, opens the document in Internet Explorer

How do I adjust the html of the hyperlink to ensure that the file is opened
in Word or Excel?

Thank you



Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Hyperlink to open document - 01-01-2004 , 05:28 PM






Ravi Sandhu wrote:

Quote:
I am able to place a link in html to a Word or Excel document.

That hyperlink, opens the document in Internet Explorer
No it doesn't. The link tells the browser about the existance of a resource,
the browser opens it internally.

Quote:
How do I adjust the html of the hyperlink to ensure that the file is
opened in Word or Excel?
You don't. You adjust the browser to open the document in the application
rather then the plugin.

--
David Dorward <http://dorward.me.uk/>


Reply With Quote
  #3  
Old   
Fredo Vincentis
 
Posts: n/a

Default Re: Hyperlink to open document - 01-01-2004 , 08:50 PM



"Ravi Sandhu" <ravisandhu (AT) mail (DOT) com> wrote

Quote:
Hi guys

I am able to place a link in html to a Word or Excel document.

That hyperlink, opens the document in Internet Explorer

How do I adjust the html of the hyperlink to ensure that the file is
opened
in Word or Excel?
Unfortunately you cannot control this using HTML. Which means the browsers
of your users will open the link according to the settings of their
browsers. Pretty often this means it will open inside the browser window as
you have experienced.

The only thing you can do if you don't want the link to open directly in the
window is to either convert it into a zip file (which will force the user to
download it first) or you could open it in a new browser window (< a
href="mydoc.doc" target="_blank">Download the Doc</a>), which would at least
keep your website open to the user.




Reply With Quote
  #4  
Old   
Ravi
 
Posts: n/a

Default Re: Hyperlink to open document - 01-02-2004 , 02:35 AM



Good suggestion Fredo thanks

"Fredo Vincentis" <yahoda21 (AT) hotmailNoSpam (DOT) com> wrote

Quote:
"Ravi Sandhu" <ravisandhu (AT) mail (DOT) com> wrote in message
news:dO1Jb.4491$Qr5.1513940 (AT) newsfep2-win (DOT) server.ntli.net...
Hi guys

I am able to place a link in html to a Word or Excel document.

That hyperlink, opens the document in Internet Explorer

How do I adjust the html of the hyperlink to ensure that the file is
opened
in Word or Excel?

Unfortunately you cannot control this using HTML. Which means the browsers
of your users will open the link according to the settings of their
browsers. Pretty often this means it will open inside the browser window
as
you have experienced.

The only thing you can do if you don't want the link to open directly in
the
window is to either convert it into a zip file (which will force the user
to
download it first) or you could open it in a new browser window (< a
href="mydoc.doc" target="_blank">Download the Doc</a>), which would at
least
keep your website open to the user.





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.