Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sace target as

 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript has no control over that
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic