I'm trying to create a page which gives you a download dialog box for a file as soon as you open the page
I've got the following code which when works fine as an ASP or html file downloading an .EXE but I'm trying to make an auto download for a .PDF and/or .TXT file.
Can you only autodownload .EXE files?
This is the code I've got that works for .EXE
I've got the following code which when works fine as an ASP or html file downloading an .EXE but I'm trying to make an auto download for a .PDF and/or .TXT file.
Can you only autodownload .EXE files?
This is the code I've got that works for .EXE
<html>
<head>
</head>
<BODY>
<script language="JavaScript" type="text/javascript">
<!--
function beginDownload()
{
idl = -1;
idl = location.search.indexOf("idl=n");
if (idl < 0) document.write('<iframe height="0" width="0" src=" }
window.onLoad=beginDownload();
//-->
</script>
</body>
</html>