I am trying to write a webpage that will download "myfile.docx"
and then close itself on download complete.
Here's what I got
<html>
<body>
<form method='get' action='myfile.docx' name='startDownload'>
</form>
<script>
document.startDownload.submit();
window.close();
</script>
</body>
</html>
the problem is the page doesn't close. Please make it short