[Javascript] hyperlinks to documents

sebastian sebastian.lahajnar at pris-inz.si
Mon Sep 23 02:09:48 CDT 2002


Hi.

Firs question:

Is it possible to control how a file (for example word or excel document) is
processed after clicking on a proper hyperlink?

I have a table of links to word's documents (from an ASP query) on my web
server. Depending of the settings in different browsers (I thnink), when I
click on the hyperlink the document opens:
1. directly in the browser
2. I'm asked to open or to download

Is it possible to achive that the user is always asked or that the download
automaticly begin.

Second question:

If I change the code so that a hyperlink opens a document in a new window,
but then I choose not to open but rather download a document, then the
window opens as blank, what I don't wont (how to automaticly close the
window in no document is shown?).

Thanks, Sebastian




More information about the Javascript mailing list