/    Sign up×
Community /Pin to ProfileBookmark

How to create Download dialog box with JavaScript?

Dear all,

Can you please tell me how to create a Download Dialog Box with JavaScript?

Thank you very much for your help.

regards,
Lewis

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyJan 31.2006 — What do you mean by Download Dialog Box, and why do you want to achieve this with JavaScript?
Copy linkTweet thisAlerts:
@lewislamauthorJan 31.2006 — Dear bathurst_guy,

I mean the dialog box with "Open" and "Save as" button when clicking on "Download" button. I want to create a html page with a "Download" button to download a .htm or a .txt file. And I want this dialog box to be prompted when the "Download" button is clicked.

Please let know if you have any idea to solve this problem. Thank you very much for your help.

regards,

Lewis
Copy linkTweet thisAlerts:
@bathurst_guyJan 31.2006 — What you should do is zip them and just link to the zip file.
Copy linkTweet thisAlerts:
@lewislamauthorJan 31.2006 — Is it possible link to a .htm or a .txt file directly?
Copy linkTweet thisAlerts:
@bathurst_guyJan 31.2006 — yes but it will be displayed in the browser
×

Success!

Help @lewislam 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.7,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

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