Forum Moderators: open
I am trying to use the document.execCommand('SaveAs') command but this only seems to work if the document in the top frame is a html document it will not work if it is a word document.
If anybody has any suggestions as to how to get this working or has an alternative method of saving a word document using javascript (or any other client side language) I would welcome them.
Thanks in anticipation.
Here goes:
begin frameset.html---------
<FRAMESET rows=40,*>
<FRAME src=navbar.html name=navbar>
<FRAME src=mydoc.doc name=mainframe>
</FRAMESET>
end frameset.html----------
begin navbar.html----------
<input type=button value="Save As" onClick="window.parent.mainframe.focus();document.execCommand('SaveAs')">
<input type=button value="Close Document" onClick='window.parent.mainframe.location="about:blank"'>
end navbar.html---------
I reckon that'll work. Haven't tested it tho