  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. |
|