File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "sace target as" Watch "sace target as" New topic

sace target as

Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
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

Joined: Nov 08, 2001
Posts: 15385
JavaScript has no control over that
I agree. Here's the link:
subject: sace target as
It's not a secret anymore!