Tengo el siguiente código:
<html>
<script type="text/javascipt">
function startDownload()
{
var url='http://server/folder/file.ext';
window.open(url,'Download');
}
</script>
Then put this in the body, which will start the download automatically after 5 seconds:
<script type="text/javascipt">
setTimeout("startDownload()",5000); //starts download after 5 seconds
</script>
</html>
<?php
echo "Test";
?>
El problema es que nunca carga la descarga y no pasa nada. He probado en todos los formatos desde html, htm, PHP y nunca me reconoce nada de JavaScript. ¿ ...