Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

trying to save a file using javascript

 
Soum Sark
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my code looks something like this
document.open("text/html","replace")
document.execCommand('SaveAs',false,'*.pdf')
The code invokes the file dialog with a tile of "Save HTML Document" and save as type of html & text files only. How can i put all files or *.* in the save as type dropdown ? and also can i change the title to "Save As" only ...the kind that comes up when we usually do save target as on a web page...
thanx for ur help
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think there is a way to do it...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic