Heres the Javascript code im using
- <script language=JavaScript>
-
-
function test() {
-
output = window.open("", "output", "width=600, height=600, toolbar=no, titlebar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=no, resizable=no, copyhistory=no,");
-
-
output.document.write("word0="+word1_txt.value+"&"+"word1="+word2_txt.value+"&"+"word2="+word3_txt.value+"&"+"word3="+word4_txt.value+"&"+"word4="+word5_txt.value);
-
-
output.document.execCommand("SaveAs",false,"*.txt")
-
-
output.close();
-
-
}
-
-
</script>
The word1_txt.value are needed for the users input on the main page.
I have recently discovered that i can save as a .doc file and the problem goes, this is ok for a temporary solution however, if it is possible i would rather use .txt.
Cheers