a certe condizioni, anche con il documentFragment funzionerebbe (IE6+)
codice:window.onload=function(){ var fragment = document.createDocumentFragment(); fragment.appendChild(document.createTextNode('ciao')) fragment.execCommand('SaveAs','false','pippo.txt') }