/    Sign up×
Community /Pin to ProfileBookmark

Code that can Download files on my website

Hello

I need help trying to find a code that will abe guests to my site to be able to download a file on to there compter,

does anyone have any infomation on this,

kind regards pip

i have only started scritping in JavaScript sorry if this is a silly problem

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@FangOct 26.2005 — It's html:
<a href="info.doc">download info</a>
Copy linkTweet thisAlerts:
@konithomimoOct 26.2005 — Like fang illustrated, all that you have to do is make a link to them. The only problem is that soem browsers prompt the user to save or open, and some browsers will try to open the file in the browser before asking the user to save it. That will happen for most media files. There are a few ways to get around that. The first is to put all of your files in zip files, which will cause all browsers to download instead of opening the file, or you can force the browser to prompt the user to download if the file is or a certain type.
Copy linkTweet thisAlerts:
@PipwilkyauthorOct 26.2005 — thanks for the help i will try that out



ty very much once again,


? :rolleyes: ?
Copy linkTweet thisAlerts:
@JPnycOct 26.2005 — The link posted there assumes that info.doc is in the same folder as your html page.
Copy linkTweet thisAlerts:
@PipwilkyauthorOct 26.2005 — thanks jpnyc thats why it was not working




:p
Copy linkTweet thisAlerts:
@PipwilkyauthorOct 26.2005 — yeah its working like a treat ty all for helping
×

Success!

Help @Pipwilky spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...