Link to home
Start Free TrialLog in
Avatar of jakiboy
jakiboy

asked on

how to invoke a "saveas dialog box" which should save only ".pdf files"

using javascript, i invoked a saveas dialog box, the problem is , it is only storing .html & .doc files by default, i want to store .pdf files only

the code i used is


function SaveFile(fname)

 {
   document.execCommand('saveas', null,fname)
  }

<input type= "button" value="save" onclick="SaveFile('');">
ASKER CERTIFIED SOLUTION
Avatar of LordKaioshin
LordKaioshin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial