Click to See Complete Forum and Search --> : Can you force the browser "Save Target As" action?
mikenol
03-03-2003, 06:58 PM
I have some links on my web site that I need to force the "Save Target As" option for the browser. Can this be done?? I found the execCommand but it tries to save the entire HTML page (it appears to be the File->Save As option not the right click->Save Target As option.
Any help would be greatly appreciated.
mikenol
03-03-2003, 07:09 PM
I do not have a server running behind the scenes. This is a automatically generated static web page that points to content on a CD. The problem is that if I provide an HREF to an exe, both Netscape and IE automatically pop up the Save As dialog box as expected. However, if my HREF is pointing to a Linux shell script xxx.sh, the browser tries to execute it which frags the browser. I need to find a way to (I don't care if it is not an HREF) to force the Save As dialog box to pop without the browser trying to interprete the content.
Thanks.