I have a xml content and I want to write it in a temporary xml file and later prompt user to save it.I have this...
var xml_content = document.getElementById('content_xml').value;
var downloadable=encodeURIComponent(xml_content);
document.location= 'data:Application/octet-stream,' +downloadable;
please help me with a pure javascript code, I mean without jquery.