republican-creole
Search:  

 
 
   All ForumsHot TopicsGallery






how-to block ads


 
Forums » Tech and Talk » OS and Software » Webmasters and Developers » Opening a file download dialog from a JavaScript function.
Search Topic:
Uniqs:
17290
Share Topic:
RSS topic:
toggle:
flat / full
normal / watch
Posting:
Post a:
Post a:
Something like a frame, but not... »
« Upgrading to PHP5 w/cPanel/WHM  
AuthorAll Replies


Franz
Mad A
Premium
join:2003-06-24
Saint Louis, MO
·Charter Pipeline


1 edit
Opening a file download dialog from a JavaScript function.

I am developing a webpage and want my users to be able to download a file from me.

I know I can put a link on the page for the user to click like this:

However, I would like to launch the dialog from a JavaScript function.
Is there an easy way to accomplish this?

--
Insert wisdom here...

OZO
Premium
join:2003-01-17
Any reason why do not use good old way?
For security reasons users may have JavaScript turned off...


cowboyro

join:2000-10-11
Shelton, CT
·AT&T U-Verse
·Comcast
·Optimum Voice


2 edits
reply to Franz
in the HEAD section:
in BODY

or if you have just 1 download location you can combine the 2 in the body:


Edit: I wouldn't worry so much about the 0.01% that are paranoid and turn off javascript... But *do* provide a link in case a popup blocker kills the download.
-
Forums » Tech and Talk » OS and Software » Webmasters and DevelopersSomething like a frame, but not... »
« Upgrading to PHP5 w/cPanel/WHM  


Friday, 20-Nov 22:57:36 Terms of Use | Privacy Policy | Hosting by www.nac.net - DSL,Hosting & Co-lo | feedback | contact
over 10 years online! © 1999-2009 dslreports.com.republican-creole
page compression OFF
Most commented news this week
· [112] Verizon Again Hints At Metered Billing
· [84] Spain Declares Broadband A Legal Right
· [82] Will AOL's Implosion Ever End?
· [78] There's Still No Evidence That Metered Billing Is Necessary
· [74] Verizon To Be Tested By Unofficial Droid Tethering
· [73] Femtocells Are A No Show
· [71] Deploying FTTH Without Digging Things Up
· [66] Verizon To AT&T: The Truth Hurts
· [60] Chicago Tribune Visits 'Comcast University'
· [53] Feds Crack Down On Gift Card Trickery
Most people now reading
· Town to photograph EVERY car that enters and leaves [Security]
· [WIN7] microsoft 7 [Microsoft Help]
· 3.x Feral Druid - Bear Tanking Guide [World of Warcraft]
· [Speed Problem] Slow DSL Down Rates at Night [AT&T Southeast]
· ToC 4th boss - Preliminary Strategy for Twin Valkyr [World of Warcraft]
· Seems like a good deal [Home Repair & Improvement]
· Connecting to Google Voice Via SIP [VOIP Tech Chat]
· You get ONE WoW wish... what would you do? [World of Warcraft]
· email offline [AT&T Midwest]
· Removing Wood Paneling on Walls.. Alot of It [Home Repair & Improvement]