wood burning stoves*
The moose likes HTML, CSS and JavaScript and the fly likes sace target as Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "sace target as" Watch "sace target as" New topic
Author

sace target as

Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Hi,
I have a link in the html page say foo.dat, if the user right click and select save target as, then the save is saved as foo.htm instead of foo.dat.
Is there is anyoption in javascript or html to force the user to save as foo.dat ??
At this moment, the user have to manually rename the file extension from .htm to .dat
Thank you.


Spritle Software Blogs
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
JavaScript has no control over that
 
jQuery in Action, 2nd edition
 
subject: sace target as
 
Similar Threads
how to create a link to download pdf file?
Delete/update associations question
Counting Number of downloads of Static file
Format data exported to Excel from JSP
program button to perform FTP