terrydoughty
Technical User
I want to allow visitors to my web site to download (not open) a word document. How is this achieved?
Many thanks
Many thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
(1) In your HTML file, add the following Javascript:
function callSaveAs() {
if (document.execCommand) {
document.execCommand("SaveAs");
location = 'listGenerateRecurrentPayment2.html';
}
} else {
alert('SaveAs Function Not Supported by Browser');
}
}
(2) In the desired location (a Form Button, a HREF link, etc.), add this Javascript action to it:
onclick='javascript:callSaveAs();