/    Sign up×
Community /Pin to ProfileBookmark

how to make download link under javascript link

hi

i want to make the download link for a file under javascript link just he cannt get the direct link for download when he drag it to any accelerator

thanks in advance.

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@rootApr 16.2007 — What do you mean by accelerator?

Your not refering to these spam ware tools that profess to speed up downloading are you? if you are, you should be enlightend to know that they only speed up the delivery of spam...

If you search for them, articles exist on these accelerators that prove that they are totally in effective at speeding up downloading.
Copy linkTweet thisAlerts:
@secoauthorApr 16.2007 — thanks fo reply

i want javascript calls a link like "http://www.mysite.com/myfile.zip" and download start ..

that's all i need
Copy linkTweet thisAlerts:
@rootApr 16.2007 — <a href="myzip.zip" target="self">Download Me</a>

is roughly what I use for download links. It will request the filer in a new window which should then default to a dialogue box when it finds the extention, eg. zip, wav, mp3 etc and the browser should take the appropriate action.

This one line of HTML will save you about 8 or 9 lines of js code.
Copy linkTweet thisAlerts:
@secoauthorApr 16.2007 — thanks for reply

i want when i look to the stats bar i see "javascript" not the file link

thanks..
×

Success!

Help @seco 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 6.18,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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