Hyperlink to open document

R

Ravi Sandhu

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
 
B

brucie

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

you don't. if you don't want the file opening in the browser then adjust
your settings so it starts the files application to open the file.
 
D

David Dorward

Ravi said:
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.
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.
 
F

Fredo Vincentis

Ravi Sandhu said:
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.
 
R

Ravi

Good suggestion Fredo thanks

Fredo Vincentis said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top