Forum Moderators: open
It works now, but it requires JavaScript, and I'm trying to make all my sites more accessible.
The first version which is what I use now gives me the options "Run" "Save" and "Cancel". I really want the run option.
The second version only gives me "Save" and "Cancel".
What am I doing wrong?
Version 1:
<form>
<input type="button" onClick="parent.location='file.exe'" value="Download Now">
</form>
Version 2:
<form action="file.exe" method="get">
<input type="submit" value="Download Now">
</form>
Thanks so much for any help.
All I can suggest is that if you know of a page that works the way you want, view the source and see how they do it.
I'm not trying to bypass any prompt. I'm just trying to make my site accessible, and for the users of my site, after having click on the "Download Now" button to be given to choice of "Run" "Save" or "Cancel".
I'm not looking to install anything without the user's permission or consent.
The thing is, I can get the "Run" option only when it's written in JavaScript.
I'm wondering if I need to setup something to send out a header, or change a file, I have not a clue.
When it's using the <form action="file.exe" method="get"> method, it doesnt recognize the file type. It's unknown. Even if you save it, it doesnt recognize it's an exe file.
My guess is that if it recognized the file as an application, it would then solve my original problem.
So how can I get the browser to recognize it's an application file?
Thanks
That seemed like it should have worked, but didn't. I even tried different variations, like without the dot, or in capital letters.
I'm guessing I might have done something to upset the HTML god, or something.
Anyways, it hit me, I could just make it a standard text link to my file, and use CSS to make the text look like a button.
Thanks again everyone for your help!