IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes sace target as Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 15003
JavaScript has no control over that
 
 
subject: sace target as
 
Threads others viewed
how to create a link to download pdf file?
Counting Number of downloads of Static file
Delete/update associations question
program button to perform FTP
Format data exported to Excel from JSP
IntelliJ Java IDE