How do I make a button that will bring up the download box for something on my website, without the user having to right-click and select "Save Target as..." :?:
Thanks
:lol: Martin :lol:
Recommended Answers
Jump to PostYou can't. This is fundamental "user interface" 101. A programmer shouldn't attempt to force actions that are historically under user control. Also, what you're attempting violates the browser security model. Just imagine the havoc that would be caused if a web page could "silently download" anything as soon as you …
Jump to PostIt can't be done with HTML, CSS or JavaScript, the topics covered in this forum. What akadez is referring to are some possible techniques in ASP.NET, a server-side language. Daniweb has an ASP.NET forum, if you code in that language.
Jump to PostMost of your visitors will have .zip files set to offer as download rather than process automatically so you could upload in that format. There is also code that can be put in the .htaccess file to force what you want if your site is running on an apache server.
Jump to PostYou can't. This is fundamental "user interface" 101. A programmer shouldn't attempt to force actions that are historically under user control. Also, what you're attempting violates the browser security model. Just imagine the havoc that would be caused if a web page could "silently download" anything as soon as you …
Jump to PostI don't mind the question, but you're asking it in the wrong spot! Daniweb has a forum specifically for these types of issues: http://www.daniweb.com/techtalkforums/forum64.html
If you'll peruse that forum, I think you'll get the education you seek! If not, feel free to post a new thread there. No …
All 25 Replies
tgreer
189
Made Her Cry
Team Colleague
martinkorner
0
Junior Poster
akadez
0
Newbie Poster
martinkorner
0
Junior Poster
tgreer
189
Made Her Cry
Team Colleague
felgall
2
Junior Poster in Training
Bomba
0
Light Poster
tgreer
189
Made Her Cry
Team Colleague
Dani
4,064
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Dani
4,064
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Bomba
0
Light Poster
Dani
4,064
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
tgreer
189
Made Her Cry
Team Colleague
Dani
4,064
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
martinkorner
0
Junior Poster
martinkorner
0
Junior Poster
s1phrx
0
Newbie Poster
martinkorner
0
Junior Poster
s1phrx
0
Newbie Poster
martinkorner
0
Junior Poster
paradox814
1
Posting Whiz
martinkorner
0
Junior Poster
paradox814
1
Posting Whiz
martinkorner
0
Junior Poster
tgreer
189
Made Her Cry
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.