i am using javacsript to read the content of the html file and i also alter the contents.. but i am not able to save that file.. i am reading and altering content of html file as:
function edittheme(headtext, totext, bodytext, footertext) {
alert(headtext);
var xmlDoc;
if (window.ActiveXObject) {
alert('IE');
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
}
else if (document.implementation && document.implementation.createDocument) {
alert('moz');
xmlDoc = document.implementation.createDocument("", "doc", null);
}
alert('1');
xmlDoc.async="false";
xmlDoc.load("newthemes/theme3ex.html");
alert('0000');
document.getElementById('txtareahead').innerHTML = headtext;
document.getElementById('txtareato').innerHTML = totext;
document.getElementById('txtareabody').innerHTML = bodytext;
document.getElementById('txtareafooter').innerHTML = footertext;
xmlDoc.save("newthemes/theme3ex.html");
location.href = "MailSender.aspx";
}
how can the html file can be saved... if it cannot be saved using javascript , is there any other way to save it according to my code?????..